limited logs

This commit is contained in:
Luke Berndt
2023-02-15 09:33:57 -05:00
parent 303b0f9967
commit c87c57c3ab
2 changed files with 40 additions and 31 deletions

View File

@@ -12,18 +12,16 @@ error_log /dev/stdout error;
http { http {
log_format main '$http_host ' #log_format main '$http_host '
'$remote_addr [$time_local] ' # '$remote_addr'
'"$request" $status $body_bytes_sent ' # '"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" ' # '"$http_referer" "$http_user_agent" ';
'$request_time ' #access_log /dev/stdout main;
'$upstream_response_time'; #access_log off;
#access_log /dev/stdout;
include /etc/nginx/mime.types; include /etc/nginx/mime.types;
default_type application/octet-stream; default_type application/octet-stream;
access_log /dev/stdout main;
sendfile on; sendfile on;
keepalive_timeout 65; keepalive_timeout 65;

View File

@@ -19,6 +19,12 @@ server {
location / { location / {
proxy_pass http://frontend:3000; proxy_pass http://frontend:3000;
include /etc/nginx/proxy.conf; include /etc/nginx/proxy.conf;
log_format main '$http_host '
'$remote_addr'
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" ';
access_log /dev/stdout main;
#access_log off;
} }
} }
@@ -47,6 +53,7 @@ server {
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade; proxy_cache_bypass $http_upgrade;
include /etc/nginx/proxy.conf; include /etc/nginx/proxy.conf;
access_log off;
} }
} }
@@ -84,6 +91,7 @@ server {
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade; proxy_cache_bypass $http_upgrade;
include /etc/nginx/proxy.conf; include /etc/nginx/proxy.conf;
access_log off;
} }
} }
@@ -107,6 +115,7 @@ server {
proxy_pass http://backend:3005/audio$request_uri; proxy_pass http://backend:3005/audio$request_uri;
proxy_set_header Host $host; proxy_set_header Host $host;
include /etc/nginx/proxy.conf; include /etc/nginx/proxy.conf;
access_log off;
} }
} }
@@ -136,6 +145,7 @@ server {
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade; proxy_cache_bypass $http_upgrade;
include /etc/nginx/proxy.conf; include /etc/nginx/proxy.conf;
access_log off;
} }
} }
@@ -162,6 +172,7 @@ server {
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade; proxy_cache_bypass $http_upgrade;
include /etc/nginx/proxy.conf; include /etc/nginx/proxy.conf;
access_log off;
} }
} }