HH/Caddyfile.test
ismail b5335bc9bc
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m11s
fix: add Node.js CSS build step to Dockerfile, fix Caddyfile for local testing
2026-05-12 00:27:35 +03:00

35 lines
650 B
Caddyfile

http://:80, http://px360test2.tenhal.sa {
encode gzip
handle_path /static/* {
root * /srv/static
file_server {
precompressed br gzip
}
}
handle_path /media/* {
root * /srv/media
file_server
}
handle {
reverse_proxy web:8000
}
log {
output file /var/log/caddy/access.log {
roll_size 10mb
roll_keep 5
}
format json
}
header {
X-Content-Type-Options nosniff
X-Frame-Options DENY
X-XSS-Protection "1; mode=block"
Referrer-Policy strict-origin-when-cross-origin
}
}