debug: nginx conf sigil with custom logs with headers and backslash in dscrs.site
This commit is contained in:
parent
a86a2fee85
commit
ec2e9444e3
|
@ -1,3 +1,7 @@
|
||||||
|
log_format custom '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
|
'status=$status allow_origin=$allow_origin '
|
||||||
|
'"$http_referer" "$http_user_agent"';
|
||||||
|
|
||||||
{{ $proxy_settings := "proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; proxy_set_header Host $http_host; proxy_set_header X-Request-Start $msec;" }}
|
{{ $proxy_settings := "proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; proxy_set_header Host $http_host; proxy_set_header X-Request-Start $msec;" }}
|
||||||
{{ $gzip_settings := "gzip on; gzip_min_length 1100; gzip_buffers 4 32k; gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/svg+xml; gzip_vary on; gzip_comp_level 6;" }}
|
{{ $gzip_settings := "gzip on; gzip_min_length 1100; gzip_buffers 4 32k; gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/svg+xml; gzip_vary on; gzip_comp_level 6;" }}
|
||||||
|
|
||||||
|
@ -8,8 +12,8 @@
|
||||||
map $http_origin $allow_origin {
|
map $http_origin $allow_origin {
|
||||||
~^https?:\/\/(.*\.)?localhost(:\d+)?$ $http_origin;
|
~^https?:\/\/(.*\.)?localhost(:\d+)?$ $http_origin;
|
||||||
~^https?:\/\/(.*\.)?discours\.io$ $http_origin;
|
~^https?:\/\/(.*\.)?discours\.io$ $http_origin;
|
||||||
~^https?:\/\/(.*\.)?dscrs\.site(:[0-9]+)?$ $http_origin;
|
~^https?:\/\/(.*\.)?dscrs\.site$ $http_origin;
|
||||||
~^https?:\/\/testing\.(discours\.io|dscrs\.site)$ $http_origin;
|
~^https?:\/\/testing\.(discours\.io|dscrs\.site/)$ $http_origin;
|
||||||
~^https?:\/\/discoursio-webapp(-.*)?\.vercel\.app$ $http_origin;
|
~^https?:\/\/discoursio-webapp(-.*)?\.vercel\.app$ $http_origin;
|
||||||
default "";
|
default "";
|
||||||
}
|
}
|
||||||
|
@ -30,7 +34,7 @@ server {
|
||||||
listen [::]:{{ $listen_port }};
|
listen [::]:{{ $listen_port }};
|
||||||
listen {{ $listen_port }};
|
listen {{ $listen_port }};
|
||||||
server_name {{ $.NOSSL_SERVER_NAME }};
|
server_name {{ $.NOSSL_SERVER_NAME }};
|
||||||
access_log /var/log/nginx/{{ $.APP }}-access.log;
|
access_log /var/log/nginx/{{ $.APP }}-access.log custom;
|
||||||
error_log /var/log/nginx/{{ $.APP }}-error.log;
|
error_log /var/log/nginx/{{ $.APP }}-error.log;
|
||||||
client_max_body_size 100M;
|
client_max_body_size 100M;
|
||||||
|
|
||||||
|
@ -38,7 +42,7 @@ server {
|
||||||
listen [::]:{{ $listen_port }} ssl http2;
|
listen [::]:{{ $listen_port }} ssl http2;
|
||||||
listen {{ $listen_port }} ssl http2;
|
listen {{ $listen_port }} ssl http2;
|
||||||
server_name {{ $.NOSSL_SERVER_NAME }};
|
server_name {{ $.NOSSL_SERVER_NAME }};
|
||||||
access_log /var/log/nginx/{{ $.APP }}-access.log;
|
access_log /var/log/nginx/{{ $.APP }}-access.log custom;
|
||||||
error_log /var/log/nginx/{{ $.APP }}-error.log;
|
error_log /var/log/nginx/{{ $.APP }}-error.log;
|
||||||
ssl_certificate {{ $.APP_SSL_PATH }}/server.crt;
|
ssl_certificate {{ $.APP_SSL_PATH }}/server.crt;
|
||||||
ssl_certificate_key {{ $.APP_SSL_PATH }}/server.key;
|
ssl_certificate_key {{ $.APP_SSL_PATH }}/server.key;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user