From 0501938d6138f41d0c20d7aa0d617465e53dc248 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Wed, 27 Sep 2023 16:43:25 -0400 Subject: [PATCH] Disable logging --- nginx/nginx-ssl.conf.template | 4 ++-- nginx/nginx.conf.template | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nginx/nginx-ssl.conf.template b/nginx/nginx-ssl.conf.template index c630bf01..d27dbf3d 100644 --- a/nginx/nginx-ssl.conf.template +++ b/nginx/nginx-ssl.conf.template @@ -3,7 +3,7 @@ worker_processes 1; # Change this if running outside docker! user root root; pid /tmp/nginx.pid; -error_log /tmp/nginx.error.log; +error_log /dev/null; events { worker_connections 1024; # increase if you have lots of clients @@ -16,7 +16,7 @@ http { # fallback in case we can't determine a type default_type application/octet-stream; - access_log /tmp/nginx.access.log combined; + access_log off; sendfile on; upstream app_server { diff --git a/nginx/nginx.conf.template b/nginx/nginx.conf.template index a2b2699a..9495d096 100644 --- a/nginx/nginx.conf.template +++ b/nginx/nginx.conf.template @@ -3,7 +3,7 @@ worker_processes 1; # Change this if running outside docker! user root root; pid /tmp/nginx.pid; -error_log /tmp/nginx.error.log; +error_log /dev/null; events { worker_connections 1024; # increase if you have lots of clients @@ -16,7 +16,7 @@ http { # fallback in case we can't determine a type default_type application/octet-stream; - access_log /tmp/nginx.access.log combined; + access_log off; sendfile on; upstream app_server {