mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 08:47:40 -05:00
focused logging
This commit is contained in:
@@ -12,10 +12,10 @@ error_log /dev/stdout error;
|
||||
|
||||
|
||||
http {
|
||||
#log_format main '$http_host '
|
||||
# '$remote_addr'
|
||||
# '"$request" $status $body_bytes_sent '
|
||||
# '"$http_referer" "$http_user_agent" ';
|
||||
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;
|
||||
|
||||
|
||||
@@ -15,16 +15,19 @@ server {
|
||||
|
||||
server_name ${DOMAIN_NAME} www.${DOMAIN_NAME};
|
||||
|
||||
location /static {
|
||||
proxy_pass http://frontend:3000;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location /favicon.ico {
|
||||
proxy_pass http://frontend:3000;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://frontend:3000;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,9 +3,20 @@ server {
|
||||
|
||||
server_name ${DOMAIN_NAME} www.${DOMAIN_NAME};
|
||||
|
||||
location /static {
|
||||
proxy_pass http://frontend:3000;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location /favicon.ico {
|
||||
proxy_pass http://frontend:3000;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://frontend:3000;
|
||||
include /etc/nginx/proxy.conf;
|
||||
access_log /dev/stdout main;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,6 +28,7 @@ server {
|
||||
location / {
|
||||
proxy_pass http://account:3009;
|
||||
include /etc/nginx/proxy.conf;
|
||||
access_log off;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,6 +40,7 @@ server {
|
||||
location / {
|
||||
proxy_pass http://admin:3008;
|
||||
include /etc/nginx/proxy.conf;
|
||||
access_log off;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,6 +57,7 @@ server {
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
access_log off;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,6 +76,7 @@ server {
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
access_log off;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,5 +89,6 @@ server {
|
||||
proxy_pass http://backend:3005/audio$request_uri;
|
||||
proxy_set_header Host $host;
|
||||
include /etc/nginx/proxy.conf;
|
||||
access_log off;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user