[NGINX] Add mail autoconfig

This commit is contained in:
Viyurz 2024-07-06 10:28:54 +02:00
parent 72ae8f96e4
commit ec47ab7a9e
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8

View file

@ -12,6 +12,21 @@ server {
}
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name autoconfig.{{ domain }};
location / {
return 404;
}
location = /mail/config-v1.1.xml {
proxy_pass https://127.0.0.1:{{ ports['mailserver_https'] }};
}
}
server {
listen 443 ssl;
listen [::]:443 ssl;