mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 08:47:40 -05:00
logs!!
This commit is contained in:
@@ -24,10 +24,10 @@ services:
|
||||
- account
|
||||
- admin
|
||||
command: /bin/bash -c "envsubst '$$DOMAIN_NAME' < /etc/nginx/conf.d/site.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
|
||||
#logging:
|
||||
# driver: syslog
|
||||
# options:
|
||||
# tag: "nginx"
|
||||
logging:
|
||||
driver: syslog
|
||||
options:
|
||||
tag: "nginx"
|
||||
|
||||
mongo:
|
||||
build:
|
||||
|
||||
@@ -8,24 +8,23 @@ events {
|
||||
}
|
||||
|
||||
|
||||
error_log /dev/stdout info;
|
||||
error_log /dev/stdout error;
|
||||
|
||||
|
||||
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;
|
||||
default_type application/octet-stream;
|
||||
|
||||
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 main;
|
||||
|
||||
sendfile on;
|
||||
#tcp_nopush on;
|
||||
|
||||
keepalive_timeout 65;
|
||||
|
||||
gzip on;
|
||||
@@ -39,19 +38,5 @@ http {
|
||||
text/xml application/xml application/xml+rss text/javascript;
|
||||
|
||||
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