This commit is contained in:
Luke Berndt
2023-02-15 09:13:24 -05:00
parent 003fd6b6f3
commit 303b0f9967
2 changed files with 14 additions and 29 deletions

View File

@@ -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:

View File

@@ -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;
}
}
}