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 {
redir 301 {
/.well-known/host-meta https://mastodon.barkshark.tk{uri}
/.well-known/host-meta https://mastodon.example.com{uri}
}
}
mastodon.example.com {
root /home/mastodon/mastodon/public
root /home/user/mastodon/public
log /var/log/mastodon-access.log {
rotate_size 2
rotate_keep 30
@ -16,8 +18,6 @@ mastodon.example.com {
rotate_keep 30
}
gzip
header / {
Strict-Transport-Security "max-age=31536000;"
#-Content-Security-Policy