nginx nodejs tpl CRLF to LF

This commit is contained in:
myvesta 2024-05-23 14:38:21 +02:00 committed by GitHub
commit 21f7a509cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 106 additions and 106 deletions

View file

@ -1,54 +1,54 @@
server { server {
listen %ip%:%proxy_ssl_port% ssl; listen %ip%:%proxy_ssl_port% ssl;
server_name %domain_idn% %alias_idn%; server_name %domain_idn% %alias_idn%;
# ssl on; # ssl on;
# http2 on; # http2 on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
error_log /var/log/%web_system%/domains/%domain%.error.log error; error_log /var/log/%web_system%/domains/%domain%.error.log error;
# test %port_num% # test %port_num%
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on; ssl_prefer_server_ciphers on;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH'; ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
root %sdocroot%/public; root %sdocroot%/public;
index index.html; index index.html;
location / { location / {
proxy_pass http://localhost:3000; proxy_pass http://localhost:3000;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade'; proxy_set_header Connection 'upgrade';
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade; proxy_cache_bypass $http_upgrade;
# try_files $uri $uri/ @rewrites; # try_files $uri $uri/ @rewrites;
location ~* ^.+\.(%proxy_extentions%)$ { location ~* ^.+\.(%proxy_extentions%)$ {
access_log /var/log/%web_system%/domains/%domain%.log combined; access_log /var/log/%web_system%/domains/%domain%.log combined;
access_log /var/log/%web_system%/domains/%domain%.bytes bytes; access_log /var/log/%web_system%/domains/%domain%.bytes bytes;
expires max; expires max;
} }
} }
location @rewrites { location @rewrites {
rewrite ^(.+)$ /index.html last; rewrite ^(.+)$ /index.html last;
} }
location /error/ { location /error/ {
alias %home%/%user%/web/%domain%/document_errors/; alias %home%/%user%/web/%domain%/document_errors/;
} }
location ~ /\.ht {return 404;} location ~ /\.ht {return 404;}
location ~ /\.env {return 404;} location ~ /\.env {return 404;}
location ~ /\.svn/ {return 404;} location ~ /\.svn/ {return 404;}
location ~ /\.git/ {return 404;} location ~ /\.git/ {return 404;}
location ~ /\.hg/ {return 404;} location ~ /\.hg/ {return 404;}
location ~ /\.bzr/ {return 404;} location ~ /\.bzr/ {return 404;}
include %home%/%user%/conf/web/*nginx.%domain_idn%.conf_letsencrypt; include %home%/%user%/conf/web/*nginx.%domain_idn%.conf_letsencrypt;
include %home%/%user%/conf/web/s%proxy_system%.%domain%.conf*; include %home%/%user%/conf/web/s%proxy_system%.%domain%.conf*;
} }

View file

@ -1,54 +1,54 @@
server { server {
listen %ip%:%proxy_ssl_port% ssl; listen %ip%:%proxy_ssl_port% ssl;
server_name %domain_idn% %alias_idn%; server_name %domain_idn% %alias_idn%;
# ssl on; # ssl on;
# http2 on; # http2 on;
ssl_certificate %ssl_pem%; ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%; ssl_certificate_key %ssl_key%;
error_log /var/log/%web_system%/domains/%domain%.error.log error; error_log /var/log/%web_system%/domains/%domain%.error.log error;
# test %port_num% # test %port_num%
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on; ssl_prefer_server_ciphers on;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH'; ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
root %sdocroot%/public; root %sdocroot%/public;
index index.html; index index.html;
location / { location / {
proxy_pass http://localhost:3000; proxy_pass http://localhost:3000;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade'; proxy_set_header Connection 'upgrade';
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade; proxy_cache_bypass $http_upgrade;
# try_files $uri $uri/ @rewrites; # try_files $uri $uri/ @rewrites;
location ~* ^.+\.(%proxy_extentions%)$ { location ~* ^.+\.(%proxy_extentions%)$ {
access_log /var/log/%web_system%/domains/%domain%.log combined; access_log /var/log/%web_system%/domains/%domain%.log combined;
access_log /var/log/%web_system%/domains/%domain%.bytes bytes; access_log /var/log/%web_system%/domains/%domain%.bytes bytes;
expires max; expires max;
} }
} }
location @rewrites { location @rewrites {
rewrite ^(.+)$ /index.html last; rewrite ^(.+)$ /index.html last;
} }
location /error/ { location /error/ {
alias %home%/%user%/web/%domain%/document_errors/; alias %home%/%user%/web/%domain%/document_errors/;
} }
location ~ /\.ht {return 404;} location ~ /\.ht {return 404;}
location ~ /\.env {return 404;} location ~ /\.env {return 404;}
location ~ /\.svn/ {return 404;} location ~ /\.svn/ {return 404;}
location ~ /\.git/ {return 404;} location ~ /\.git/ {return 404;}
location ~ /\.hg/ {return 404;} location ~ /\.hg/ {return 404;}
location ~ /\.bzr/ {return 404;} location ~ /\.bzr/ {return 404;}
include %home%/%user%/conf/web/*nginx.%domain_idn%.conf_letsencrypt; include %home%/%user%/conf/web/*nginx.%domain_idn%.conf_letsencrypt;
include %home%/%user%/conf/web/s%proxy_system%.%domain%.conf*; include %home%/%user%/conf/web/s%proxy_system%.%domain%.conf*;
} }