mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-14 01:37:48 -05:00
logs!!
This commit is contained in:
@@ -24,10 +24,10 @@ services:
|
|||||||
- account
|
- account
|
||||||
- admin
|
- admin
|
||||||
command: /bin/bash -c "envsubst '$$DOMAIN_NAME' < /etc/nginx/conf.d/site.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
|
command: /bin/bash -c "envsubst '$$DOMAIN_NAME' < /etc/nginx/conf.d/site.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
|
||||||
#logging:
|
logging:
|
||||||
# driver: syslog
|
driver: syslog
|
||||||
# options:
|
options:
|
||||||
# tag: "nginx"
|
tag: "nginx"
|
||||||
|
|
||||||
mongo:
|
mongo:
|
||||||
build:
|
build:
|
||||||
|
|||||||
@@ -8,24 +8,23 @@ events {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
error_log /dev/stdout info;
|
error_log /dev/stdout error;
|
||||||
|
|
||||||
|
|
||||||
http {
|
http {
|
||||||
access_log /dev/stdout;
|
log_format main '$http_host '
|
||||||
|
'$remote_addr [$time_local] '
|
||||||
|
'"$request" $status $body_bytes_sent '
|
||||||
|
'"$http_referer" "$http_user_agent" '
|
||||||
|
'$request_time '
|
||||||
|
'$upstream_response_time';
|
||||||
|
#access_log /dev/stdout;
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
||||||
log_format main '$http_host '
|
access_log /dev/stdout main;
|
||||||
'$remote_addr [$time_local] '
|
|
||||||
'"$request" $status $body_bytes_sent '
|
|
||||||
'"$http_referer" "$http_user_agent" '
|
|
||||||
'$request_time '
|
|
||||||
'$upstream_response_time';
|
|
||||||
|
|
||||||
|
|
||||||
sendfile on;
|
sendfile on;
|
||||||
#tcp_nopush on;
|
|
||||||
|
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
|
|
||||||
gzip on;
|
gzip on;
|
||||||
@@ -39,19 +38,5 @@ http {
|
|||||||
text/xml application/xml application/xml+rss text/javascript;
|
text/xml application/xml application/xml+rss text/javascript;
|
||||||
|
|
||||||
include /etc/nginx/conf.d/*.conf;
|
include /etc/nginx/conf.d/*.conf;
|
||||||
server {
|
|
||||||
|
|
||||||
# Enable NGINX status module
|
|
||||||
location /nginx_status {
|
|
||||||
# freely available with open source NGINX
|
|
||||||
stub_status;
|
|
||||||
access_log off;
|
|
||||||
|
|
||||||
# for open source NGINX < version 1.7.5
|
|
||||||
# stub_status on;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user