From 69c521061044ebebb9fac38b8043f2d7be67c81f Mon Sep 17 00:00:00 2001 From: hyperdefined Date: Mon, 31 Jul 2023 12:32:30 -0400 Subject: [PATCH] do logging correctly --- web-configs/nginx/nginx-no-ssl.conf | 18 ++++++++++++------ web-configs/nginx/nginx-ssl.conf | 18 ++++++++++++------ 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/web-configs/nginx/nginx-no-ssl.conf b/web-configs/nginx/nginx-no-ssl.conf index 0b195da4..bbf048e0 100644 --- a/web-configs/nginx/nginx-no-ssl.conf +++ b/web-configs/nginx/nginx-no-ssl.conf @@ -5,8 +5,11 @@ server { listen [::]:80; server_name co.wukko.sh; - # Set loggging. By default, logging is off for privacy. - # Uncomment these if you want to enable logging. + # Turn logging off for privacy. + access_log off; + error_log /dev/null; + + # If you wish to have logging, you can uncomment these. #access_log /var/log/nginx/co.wukko.sh.access.log; #error_log /var/log/nginx/co.wukko.sh.error.log; @@ -24,10 +27,13 @@ server { listen [::]:80; server_name co.wuk.sh; - # Set loggging. By default, logging is off for privacy. - # Uncomment these if you want to enable logging. - #access_log /var/log/nginx/co.wuk.sh.access.log; - #error_log /var/log/nginx/co.wuk.sh.error.log; + # Turn logging off for privacy. + access_log off; + error_log /dev/null; + + # If you wish to have logging, you can uncomment these. + #access_log /var/log/nginx/co.wukko.sh.access.log; + #error_log /var/log/nginx/co.wukko.sh.error.log; # Pass all requests to cobalt API, as defined above. location / { diff --git a/web-configs/nginx/nginx-ssl.conf b/web-configs/nginx/nginx-ssl.conf index ab38019c..1974af4a 100644 --- a/web-configs/nginx/nginx-ssl.conf +++ b/web-configs/nginx/nginx-ssl.conf @@ -23,8 +23,11 @@ server { listen [::]:443 ssl http2; server_name co.wukko.sh; - # Set loggging. By default, logging is off for privacy. - # Uncomment these if you want to enable logging. + # Turn logging off for privacy. + access_log off; + error_log /dev/null; + + # If you wish to have logging, you can uncomment these. #access_log /var/log/nginx/co.wukko.sh.access.log; #error_log /var/log/nginx/co.wukko.sh.error.log; @@ -47,10 +50,13 @@ server { listen [::]:443 ssl http2; server_name co.wuk.sh; - # Set loggging. By default, logging is off for privacy. - # Uncomment these if you want to enable logging. - #access_log /var/log/nginx/co.wuk.sh.access.log; - #error_log /var/log/nginx/co.wuk.sh.error.log; + # Turn logging off for privacy. + access_log off; + error_log /dev/null; + + # If you wish to have logging, you can uncomment these. + #access_log /var/log/nginx/co.wukko.sh.access.log; + #error_log /var/log/nginx/co.wukko.sh.error.log; # Set your HTTPS certificate. ssl_certificate /etc/letsencrypt/live/co.wuk.sh/fullchain.pem;