From da12b9b24965632360faf08b09665b01d8e8238d Mon Sep 17 00:00:00 2001 From: FarisZR <35614734+FarisZR@users.noreply.github.com> Date: Tue, 22 Oct 2024 12:24:16 +0200 Subject: [PATCH] add discourse caddyfile --- caddy/configs/discourse.caddyfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 caddy/configs/discourse.caddyfile diff --git a/caddy/configs/discourse.caddyfile b/caddy/configs/discourse.caddyfile new file mode 100644 index 0000000..59261d4 --- /dev/null +++ b/caddy/configs/discourse.caddyfile @@ -0,0 +1,14 @@ +discourse.aosus.org { + header { + Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" + } + handle_errors { + # handle_errors is only triggerd on erros from Caddy and not the proxy, that's why we don't specifiy any errors here. + rewrite * /proxy_error_page.html + file_server { + root /srv/ + } + } + reverse_proxy app:80 + encode zstd gzip +}