diff --git a/etc/caddy/Caddyfile b/etc/caddy/Caddyfile index a37abfe..4777109 100644 --- a/etc/caddy/Caddyfile +++ b/etc/caddy/Caddyfile @@ -9,7 +9,6 @@ fogtype.com { header access-control-allow-origin * file_server } - reverse_proxy /.well-known/mta-sts.txt host.docker.internal:8081 reverse_proxy http://gts:8080 } www.fogtype.com { @@ -22,6 +21,12 @@ dns.fogtype.com { } } } +mta-sts.fogtype.com { + handle /.well-known/mta-sts.txt { + file_server + } + redir / /.well-known/mta-sts.txt +} task.fogtype.com { reverse_proxy /.well-known/* vikunja-api:3456 reverse_proxy /api/* vikunja-api:3456 diff --git a/srv/.well-known/mta-sts.txt b/srv/.well-known/mta-sts.txt new file mode 100644 index 0000000..0d1c3f8 --- /dev/null +++ b/srv/.well-known/mta-sts.txt @@ -0,0 +1,4 @@ +version: STSv1 +mode: enforce +max_age: 86400 +mx: fogtype.com