Von Lars, 2 Monate vorher, geschrieben in Plain Text.
[paste_expire] 1 Sekunde.
Einbetten
  1. server {
  2.   listen 80 default_server;
  3.   listen [::]:80 default_server;
  4.   server_name mail.domain.tld autodiscover.* autoconfig.*;
  5.   return 301 https://$host$request_uri;
  6. }
  7. server {
  8.   listen 443 ssl http2;
  9.   listen [::]:443 ssl http2;
  10.   server_name mail.domain.tld autodiscover.* autoconfig.* mail.* imap.* smtp.* pop3.*;
  11.  
  12.   ssl on;
  13.   ssl_certificate /opt/mailcow-dockerized/data/assets/ssl/cert.pem;
  14.   ssl_certificate_key /opt/mailcow-dockerized/data/assets/ssl/key.pem;
  15.   ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  16.   ssl_ciphers HIGH:!aNULL:!MD5;
  17.  
  18.   location /Microsoft-Server-ActiveSync {
  19.     proxy_pass http://127.0.0.1:8080/Microsoft-Server-ActiveSync;
  20.     proxy_set_header Host $http_host;
  21.     proxy_set_header X-Real-IP $remote_addr;
  22.     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  23.     proxy_set_header X-Forwarded-Proto $scheme;
  24.     client_max_body_size 0;
  25.     proxy_connect_timeout 4000;
  26.     proxy_next_upstream timeout error;
  27.     proxy_send_timeout 4000;
  28.     proxy_read_timeout 4000;
  29.   }
  30.  
  31.   location / {
  32.       proxy_pass http://127.0.0.1:8080/;
  33.       proxy_set_header Host $http_host;
  34.       proxy_set_header X-Real-IP $remote_addr;
  35.       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  36.       proxy_set_header X-Forwarded-Proto $scheme;
  37.       client_max_body_size 0;
  38.   }
  39.   #include /etc/nginx/nginxconfig.io/security.conf;
  40.  
  41. }
captcha