suspended.stpl 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #=========================================================================#
  2. # Default Web Domain Template #
  3. # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
  4. # https://hestiacp.com/docs/server-administration/web-templates.html #
  5. #=========================================================================#
  6. server {
  7. listen %ip%:%proxy_ssl_port% ssl;
  8. server_name %domain_idn% %alias_idn%;
  9. root %sdocroot%;
  10. access_log /var/log/nginx/domains/%domain%.log combined;
  11. access_log /var/log/nginx/domains/%domain%.bytes bytes;
  12. error_log /var/log/nginx/domains/%domain%.error.log error;
  13. ssl_certificate %ssl_pem%;
  14. ssl_certificate_key %ssl_key%;
  15. ssl_stapling on;
  16. ssl_stapling_verify on;
  17. # TLS 1.3 0-RTT anti-replay
  18. if ($anti_replay = 307) { return 307 https://$host$request_uri; }
  19. if ($anti_replay = 425) { return 425; }
  20. include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*;
  21. location ~ /\.(?!well-known\/|file) {
  22. deny all;
  23. return 404;
  24. }
  25. location / {
  26. try_files $uri /index.html;
  27. location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ {
  28. expires max;
  29. fastcgi_hide_header "Set-Cookie";
  30. }
  31. }
  32. location /error/ {
  33. alias %home%/%user%/web/%domain%/document_errors/;
  34. }
  35. include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*;
  36. }