Skip to content

Commit 2c11ab1

Browse files
authored
Development: disable NGINX logs (#9569)
We were using `logging.driver: none` on Docker Compose's file, but it stopped working and I was not able to enable it again. So, for now, I'm just disabling the logging from NGINX itself because they are too annoying when working locally.
1 parent 7de0e35 commit 2c11ab1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dockerfiles/nginx/proxito.conf.template

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ server {
33
listen 80 default_server;
44
server_name $NGINX_PROXITO_SERVER_NAME;
55

6+
# Docker Compose's "logging.driver: none" is not working anymore.
7+
# So, we are disabling the logs from NGINX directly.
8+
access_log off;
9+
610
# TODO: serve the favicon.ico from the project/version itself instead
711
location /favicon.ico {
812
proxy_pass http://storage:9000/static/images/favicon.ico;

dockerfiles/nginx/web.conf.template

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ server {
44
# This should match settings.PRODUCTION_DOMAIN
55
server_name $NGINX_WEB_SERVER_NAME;
66

7+
# Docker Compose's "logging.driver: none" is not working anymore.
8+
# So, we are disabling the logs from NGINX directly.
9+
access_log off;
10+
711
location /favicon.ico {
812
proxy_pass http://storage:9000/static/images/favicon.ico;
913
break;

0 commit comments

Comments
 (0)