onasty/infra/caddy/Caddyfile (view raw)
| 1 | your.domain.name { |
| 2 | encode gzip |
| 3 | |
| 4 | reverse_proxy /api/* core:8000 |
| 5 | |
| 6 | root * /srv/frontend |
| 7 | try_files {path} /index.html |
| 8 | file_server |
| 9 | |
| 10 | header { |
| 11 | Strict-Transport-Security max-age=31536000; |
| 12 | X-Content-Type-Options nosniff |
| 13 | X-Frame-Options DENY |
| 14 | X-XSS-Protection "1; mode=block" |
| 15 | } |
| 16 | } |