From f4de366c6161e25457a9dbf475036cb704900116 Mon Sep 17 00:00:00 2001 From: qy117121 Date: Thu, 16 Feb 2023 19:55:01 +0800 Subject: [PATCH] update --- nginx/kuma.stpl | 42 ------------------------------------------ nginx/kuma.tpl | 39 --------------------------------------- 2 files changed, 81 deletions(-) delete mode 100644 nginx/kuma.stpl delete mode 100644 nginx/kuma.tpl diff --git a/nginx/kuma.stpl b/nginx/kuma.stpl deleted file mode 100644 index 8d33534..0000000 --- a/nginx/kuma.stpl +++ /dev/null @@ -1,42 +0,0 @@ -#=======================================================================# -# Default Web Domain Template # -# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # -#=======================================================================# - - -server { - listen %ip%:%proxy_ssl_port% ssl http2; - listen [2603:c022:8007:9122::8888]:%proxy_ssl_port% ssl http2; - server_name %domain_idn% %alias_idn%; - ssl_certificate %ssl_pem%; - ssl_certificate_key %ssl_key%; - ssl_stapling on; - ssl_stapling_verify on; - error_log /var/log/%web_system%/domains/%domain%.error.log error; - - # include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*; - - location / { - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $host; - proxy_pass http://127.0.0.1:3001/; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - } - - location /error/ { - alias %home%/%user%/web/%domain%/document_errors/; - } - - - location ~ /\.ht {return 404;} - location ~ /\.svn/ {return 404;} - location ~ /\.git/ {return 404;} - location ~ /\.hg/ {return 404;} - location ~ /\.bzr/ {return 404;} - - include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*; -} - diff --git a/nginx/kuma.tpl b/nginx/kuma.tpl deleted file mode 100644 index d657828..0000000 --- a/nginx/kuma.tpl +++ /dev/null @@ -1,39 +0,0 @@ -#=========================================================================# -# Default Web Domain Template # -# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # -# https://docs.hestiacp.com/admin_docs/web.html#how-do-web-templates-work # -#=========================================================================# - -server { - listen %ip%:%proxy_port%; - server_name %domain_idn% %alias_idn%; - - include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*; - - location / { - proxy_pass http://%ip%:%web_port%; - location ~* ^.+\.(%proxy_extensions%)$ { - root %docroot%; - access_log /var/log/%web_system%/domains/%domain%.log combined; - access_log /var/log/%web_system%/domains/%domain%.bytes bytes; - expires max; - try_files $uri @fallback; - } - } - - location /error/ { - alias %home%/%user%/web/%domain%/document_errors/; - } - - location @fallback { - proxy_pass http://%ip%:%web_port%; - } - - location ~ /\.(?!well-known\/|file) { - deny all; - return 404; - } - - include %home%/%user%/conf/web/%domain%/nginx.conf_*; -} -