default_disabled.stpl 874 B

1234567891011121314151617181920212223242526272829303132
  1. server {
  2. listen %ip%:%proxy_ssl_port% ssl;
  3. server_name %domain_idn% %alias_idn%;
  4. index index.php index.html index.htm;
  5. access_log /var/log/nginx/domains/%domain%.log combined;
  6. error_log /var/log/nginx/domains/%domain%.error.log error;
  7. ssl_certificate %ssl_pem%;
  8. ssl_certificate_key %ssl_key%;
  9. #Commented out ssl_stapling directives due to Lets Encrypt ending OCSP support in 2025
  10. #ssl_stapling on;
  11. #ssl_stapling_verify on;
  12. # TLS 1.3 0-RTT anti-replay
  13. if ($anti_replay = 307) { return 307 https://$host$request_uri; }
  14. if ($anti_replay = 425) { return 425; }
  15. location ~ /\.(?!well-known\/) {
  16. deny all;
  17. return 404;
  18. }
  19. location / {
  20. proxy_ssl_server_name on;
  21. proxy_ssl_name $host;
  22. proxy_pass http://%ip%:%web_port%;
  23. }
  24. proxy_hide_header Upgrade;
  25. include %home%/%user%/conf/mail/%root_domain%/%proxy_system%.ssl.conf_*;
  26. }