Files
epicyon/caddy.example.conf
T

28 lines
630 B
Plaintext
Raw Normal View History

2022-05-03 19:17:23 +01:00
# Example configuration file for running Caddy2 in front of Epicyon
2019-11-12 21:50:15 +00:00
2022-05-03 19:17:23 +01:00
YOUR_DOMAIN {
tls USER@YOUR_DOMAIN
2019-11-12 21:50:15 +00:00
2022-05-03 19:17:23 +01:00
header {
Strict-Transport-Security "max-age=31556925"
Content-Security-Policy "default-src https:; script-src https: 'unsafe-inline'; style-src https: 'unsafe-inline'"
X-Content-Type-Options "nosniff"
X-Download-Options "noopen"
X-Frame-Options "DENY"
X-Permitted-Cross-Domain-Policies "none"
X-XSS-Protection "1; mode=block"
2019-11-12 21:50:15 +00:00
}
2022-05-03 19:17:23 +01:00
route /newsmirror/* {
root * /var/www/YOUR_DOMAIN
file_server
}
route /* {
reverse_proxy http://127.0.0.1:7156
}
encode zstd gzip
2019-11-12 21:50:15 +00:00
}
2022-05-03 19:17:23 +01:00
# eof