You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.6 KiB
40 lines
1.6 KiB
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name mail.example.com autodiscover.example.com autoconfig.example.com;
|
|
|
|
ssl_certificate /opt/mailcow-dockerized/data/assets/ssl/fullchain.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/security.conf;
|
|
|
|
location /Microsoft-Server-ActiveSync {
|
|
proxy_pass http://127.0.0.1:8080/Microsoft-Server-ActiveSync;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_connect_timeout 75;
|
|
proxy_send_timeout 3650;
|
|
proxy_read_timeout 3650;
|
|
proxy_buffers 64 256k;
|
|
client_body_buffer_size 512k;
|
|
client_max_body_size 0;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8080/;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
client_max_body_size 0;
|
|
}
|
|
}
|
|
|