|
|
|
@ -1,19 +1,22 @@ |
|
|
|
|
server { |
|
|
|
|
listen 80 default_server; |
|
|
|
|
listen [::]:80 default_server; |
|
|
|
|
server_name email.example.com autodiscover.* autoconfig.*; |
|
|
|
|
return 301 https://$host$request_uri; |
|
|
|
|
} |
|
|
|
|
server { |
|
|
|
|
listen 443 ssl http2; |
|
|
|
|
listen [::]:443 ssl http2; |
|
|
|
|
server_name email.example.com autodiscover.* autoconfig.*; |
|
|
|
|
|
|
|
|
|
server_name mail.example.com autodiscover.example.com autoconfig.example.com; |
|
|
|
|
|
|
|
|
|
ssl_certificate /opt/mailcow-dockerized/data/assets/ssl/fullchain.pem; |
|
|
|
|
ssl_certificate /opt/mailcow-dockerized/data/assets/ssl/cert.pem; |
|
|
|
|
ssl_certificate_key /opt/mailcow-dockerized/data/assets/ssl/key.pem; |
|
|
|
|
ssl_dhparam /opt/mailcow-dockerized/data/assets/ssl/dhparams.pem; |
|
|
|
|
|
|
|
|
|
include /etc/nginx/snippets/ssl.conf; |
|
|
|
|
|
|
|
|
|
ssl_trusted_certificate /opt/mailcow-dockerized/data/assets/ssl/chain.pem; |
|
|
|
|
include /etc/nginx/snippets/stapling.conf; |
|
|
|
|
|
|
|
|
|
include /etc/nginx/snippets/mailcow.conf; |
|
|
|
|
include /etc/nginx/snippets/headers.conf; |
|
|
|
|
|
|
|
|
|
location /Microsoft-Server-ActiveSync { |
|
|
|
|
proxy_pass http://127.0.0.1:8080/Microsoft-Server-ActiveSync; |
|
|
|
@ -38,3 +41,4 @@ server { |
|
|
|
|
client_max_body_size 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|