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

@@ -17,8 +17,14 @@ 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;
} }
} }
@@ -126,17 +135,18 @@ server {
ssl_stapling_verify on; ssl_stapling_verify on;
add_header Strict-Transport-Security max-age=15768000; add_header Strict-Transport-Security max-age=15768000;
server_name account.${DOMAIN_NAME}; server_name account.${DOMAIN_NAME};
location / { location / {
proxy_pass http://account:3009; proxy_pass http://account:3009;
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;
include /etc/nginx/proxy.conf; include /etc/nginx/proxy.conf;
} access_log off;
}
} }
server { server {
@@ -152,17 +162,18 @@ server {
ssl_stapling_verify on; ssl_stapling_verify on;
add_header Strict-Transport-Security max-age=15768000; add_header Strict-Transport-Security max-age=15768000;
server_name admin.${DOMAIN_NAME}; server_name admin.${DOMAIN_NAME};
location / { location / {
proxy_pass http://admin:3008; proxy_pass http://admin:3008;
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;
include /etc/nginx/proxy.conf; include /etc/nginx/proxy.conf;
} access_log off;
}
} }
server { server {