update
This commit is contained in:
parent
f2a60f1732
commit
f4de366c61
2 changed files with 0 additions and 81 deletions
|
|
@ -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_*;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -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_*;
|
|
||||||
}
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue