74 lines
2.4 KiB
Text
74 lines
2.4 KiB
Text
|
|
#=======================================================================#
|
||
|
|
# Default Web Domain Template #
|
||
|
|
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
|
||
|
|
#=======================================================================#
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen %ip%:%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*;
|
||
|
|
add_header Strict-Transport-Security "max-age=63072000" always;
|
||
|
|
|
||
|
|
|
||
|
|
location / {
|
||
|
|
proxy_pass https://%ip%:%web_ssl_port%;
|
||
|
|
location ~* ^.+\.(%proxy_extensions%)$ {
|
||
|
|
root %sdocroot%;
|
||
|
|
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 /sky {
|
||
|
|
proxy_redirect off;
|
||
|
|
proxy_pass http://127.0.0.1:23876;
|
||
|
|
proxy_http_version 1.1;
|
||
|
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
|
proxy_set_header Connection "upgrade";
|
||
|
|
proxy_set_header Host $host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
location /a552d878db04/
|
||
|
|
{
|
||
|
|
proxy_redirect off;
|
||
|
|
proxy_pass http://127.0.0.1:30875;
|
||
|
|
proxy_http_version 1.1;
|
||
|
|
proxy_set_header X-Real-IP \$remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
|
proxy_set_header Connection "upgrade";
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
location /error/ {
|
||
|
|
alias %home%/%user%/web/%domain%/document_errors/;
|
||
|
|
}
|
||
|
|
|
||
|
|
location @fallback {
|
||
|
|
proxy_pass https://%ip%:%web_ssl_port%;
|
||
|
|
}
|
||
|
|
|
||
|
|
location ~ /\.ht {return 404;}
|
||
|
|
location ~ /\.svn/ {return 404;}
|
||
|
|
location ~ /\.git/ {return 404;}
|
||
|
|
location ~ /\.hg/ {return 404;}
|
||
|
|
location ~ /\.bzr/ {return 404;}
|
||
|
|
|
||
|
|
# proxy_hide_header Upgrade;
|
||
|
|
|
||
|
|
include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*;
|
||
|
|
}
|
||
|
|
|