Skip to content

Commit

Permalink
add discourse caddyfile
Browse files Browse the repository at this point in the history
  • Loading branch information
FarisZR committed Oct 22, 2024
1 parent 0d68fd8 commit da12b9b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions caddy/configs/discourse.caddyfile
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit da12b9b

Please sign in to comment.