NGINX: Add MTA-STS

This commit is contained in:
Viyurz 2024-07-03 12:41:23 +02:00
parent c47273663b
commit cb564f3114
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8

View file

@ -11,3 +11,18 @@ server {
include /etc/nginx/snippets/proxy.conf; include /etc/nginx/snippets/proxy.conf;
} }
} }
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name mta-sts.{{ domain }};
location / {
return 404;
}
location = /.well-known/mta-sts.txt {
proxy_pass https://127.0.0.1:{{ ports['mailserver_https'] }};
}
}