From 22facf0c41dbf892e8a5dcdb25f1862e98f62185 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 10 Mar 2020 21:40:33 +0100 Subject: [PATCH] Outcomment NGINX logging for PeerTube. --- buster/setup_scripts/setup_peertube.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/buster/setup_scripts/setup_peertube.sh b/buster/setup_scripts/setup_peertube.sh index 3ff8e48..8628f90 100755 --- a/buster/setup_scripts/setup_peertube.sh +++ b/buster/setup_scripts/setup_peertube.sh @@ -63,6 +63,7 @@ rm /etc/nginx/sites-enabled/default # Configure NGINX. cp /var/www/peertube/peertube-latest/support/nginx/peertube /etc/nginx/sites-available/peertube sed -i "s/peertube.example.com/${domain}/g" /etc/nginx/sites-available/peertube +sed -iE 's/^([[:space:]]*)(access_log|error_log)([[:space:]])/\1# \2\3/' /etc/nginx/sites-available/peertube ln -s /etc/nginx/sites-available/peertube /etc/nginx/sites-enabled/peertube # Configure systemd and start PeerTube through it. -- 2.30.2