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

View File

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