Update 'dist/caddy.conf'

This commit is contained in:
Izalia Mae 2019-09-20 21:33:36 -04:00
parent d3b1e6358e
commit 0898f13f42

8
dist/caddy.conf vendored
View file

@ -1,11 +1,13 @@
#Only use this if you wanna run masto on a sub domain, but still keep @example.com as your federated domain
example.com { example.com {
redir 301 { redir 301 {
/.well-known/host-meta https://mastodon.barkshark.tk{uri} /.well-known/host-meta https://mastodon.example.com{uri}
} }
} }
mastodon.example.com { mastodon.example.com {
root /home/mastodon/mastodon/public root /home/user/mastodon/public
log /var/log/mastodon-access.log { log /var/log/mastodon-access.log {
rotate_size 2 rotate_size 2
rotate_keep 30 rotate_keep 30
@ -16,8 +18,6 @@ mastodon.example.com {
rotate_keep 30 rotate_keep 30
} }
gzip
header / { header / {
Strict-Transport-Security "max-age=31536000;" Strict-Transport-Security "max-age=31536000;"
#-Content-Security-Policy #-Content-Security-Policy