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