From 6c101abdb3306ab7c9369a2184f3619add47667e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 10 Nov 2016 13:26:31 +0000 Subject: [PATCH] Turning logs off --- src/freedombone-app-dokuwiki | 4 ++-- src/freedombone-app-etherpad | 8 ++++---- src/freedombone-app-ghost | 8 ++++---- src/freedombone-app-gnusocial | 8 ++++---- src/freedombone-app-gogs | 8 ++++---- src/freedombone-app-htmly | 4 ++-- src/freedombone-app-hubzilla | 4 ++-- src/freedombone-app-lychee | 4 ++-- src/freedombone-app-mailpile | 8 ++++---- src/freedombone-app-postactiv | 8 ++++---- src/freedombone-app-rss | 8 ++++---- src/freedombone-app-searx | 4 ++-- src/freedombone-app-webmail | 6 +++--- src/freedombone-logging | 6 +++--- src/freedombone-utils-web | 2 +- 15 files changed, 45 insertions(+), 45 deletions(-) diff --git a/src/freedombone-app-dokuwiki b/src/freedombone-app-dokuwiki index 34d746dc..895117ae 100755 --- a/src/freedombone-app-dokuwiki +++ b/src/freedombone-app-dokuwiki @@ -310,7 +310,7 @@ function install_dokuwiki { echo ' listen 443 ssl;' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo " root /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs;" >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo " server_name $DOKUWIKI_DOMAIN_NAME;" >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME - echo ' access_log off;' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo " error_log /var/log/nginx/${DOKUWIKI_DOMAIN_NAME}_error_ssl.log $WEBSERVER_LOG_LEVEL;" >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo ' index index.php;' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo ' charset utf-8;' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME @@ -403,7 +403,7 @@ function install_dokuwiki { echo " listen 127.0.0.1:${DOKUWIKI_ONION_PORT} default_server;" >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo " root /var/www/$DOKUWIKI_DOMAIN_NAME/htdocs;" >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo " server_name $DOKUWIKI_ONION_HOSTNAME;" >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME - echo ' access_log off;' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo " error_log /var/log/nginx/${DOKUWIKI_DOMAIN_NAME}_error_ssl.log $WEBSERVER_LOG_LEVEL;" >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo ' index index.php;' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo ' charset utf-8;' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME diff --git a/src/freedombone-app-etherpad b/src/freedombone-app-etherpad index 637b4fde..2a293cfa 100755 --- a/src/freedombone-app-etherpad +++ b/src/freedombone-app-etherpad @@ -524,8 +524,8 @@ function install_etherpad { echo ' add_header Strict-Transport-Security max-age=15768000;' >> $etherpad_nginx_site echo '' >> $etherpad_nginx_site echo ' # Logs' >> $etherpad_nginx_site - echo ' access_log off;' >> $etherpad_nginx_site - echo ' error_log off;' >> $etherpad_nginx_site + echo ' access_log /dev/null;' >> $etherpad_nginx_site + echo ' error_log /dev/null;' >> $etherpad_nginx_site echo '' >> $etherpad_nginx_site echo ' # Root' >> $etherpad_nginx_site echo " root /var/www/$ETHERPAD_DOMAIN_NAME/htdocs;" >> $etherpad_nginx_site @@ -549,8 +549,8 @@ function install_etherpad { nginx_disable_sniffing $ETHERPAD_DOMAIN_NAME echo '' >> $etherpad_nginx_site echo ' # Logs' >> $etherpad_nginx_site - echo ' access_log off;' >> $etherpad_nginx_site - echo ' error_log off;' >> $etherpad_nginx_site + echo ' access_log /dev/null;' >> $etherpad_nginx_site + echo ' error_log /dev/null;' >> $etherpad_nginx_site echo '' >> $etherpad_nginx_site echo ' # Root' >> $etherpad_nginx_site echo " root /var/www/$ETHERPAD_DOMAIN_NAME/htdocs;" >> $etherpad_nginx_site diff --git a/src/freedombone-app-ghost b/src/freedombone-app-ghost index 18d15809..40e76c51 100755 --- a/src/freedombone-app-ghost +++ b/src/freedombone-app-ghost @@ -351,7 +351,7 @@ function install_ghost { echo ' listen 443 ssl;' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} echo " root /var/www/${GHOST_DOMAIN_NAME}/htdocs;" >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} echo " server_name ${GHOST_DOMAIN_NAME};" >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} - echo ' access_log off;' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} echo " error_log /var/log/nginx/${GHOST_DOMAIN_NAME}_error.log ${WEBSERVER_LOG_LEVEL};" >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} echo '' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} function_check nginx_ssl @@ -374,7 +374,7 @@ function install_ghost { echo ' location = /robots.txt {' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} echo ' allow all;' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} echo ' log_not_found off;' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} - echo ' access_log off;' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} echo ' }' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} echo '}' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} echo '' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} @@ -385,7 +385,7 @@ function install_ghost { echo " listen 127.0.0.1:${GHOST_ONION_PORT} default_server;" >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} echo " root /var/www/$GHOST_DOMAIN_NAME/htdocs;" >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} echo " server_name $GHOST_DOMAIN_NAME;" >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} - echo ' access_log off;' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} echo " error_log /var/log/nginx/${GHOST_DOMAIN_NAME}_error.log ${WEBSERVER_LOG_LEVEL};" >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} echo '' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} function_check nginx_disable_sniffing @@ -406,7 +406,7 @@ function install_ghost { echo ' location = /robots.txt {' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} echo ' allow all;' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} echo ' log_not_found off;' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} - echo ' access_log off;' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} echo ' }' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} echo '}' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} diff --git a/src/freedombone-app-gnusocial b/src/freedombone-app-gnusocial index d6dde884..70319eef 100755 --- a/src/freedombone-app-gnusocial +++ b/src/freedombone-app-gnusocial @@ -575,8 +575,8 @@ function install_gnusocial_main { echo ' add_header Strict-Transport-Security max-age=15768000;' >> $gnusocial_nginx_site echo '' >> $gnusocial_nginx_site echo ' # Logs' >> $gnusocial_nginx_site - echo ' access_log off;' >> $gnusocial_nginx_site - echo ' error_log off;' >> $gnusocial_nginx_site + echo ' access_log /dev/null;' >> $gnusocial_nginx_site + echo ' error_log /dev/null;' >> $gnusocial_nginx_site echo '' >> $gnusocial_nginx_site echo ' # Root' >> $gnusocial_nginx_site echo " root /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs;" >> $gnusocial_nginx_site @@ -618,8 +618,8 @@ function install_gnusocial_main { nginx_disable_sniffing $GNUSOCIAL_DOMAIN_NAME echo '' >> $gnusocial_nginx_site echo ' # Logs' >> $gnusocial_nginx_site - echo ' access_log off;' >> $gnusocial_nginx_site - echo ' error_log off;' >> $gnusocial_nginx_site + echo ' access_log /dev/null;' >> $gnusocial_nginx_site + echo ' error_log /dev/null;' >> $gnusocial_nginx_site echo '' >> $gnusocial_nginx_site echo ' # Root' >> $gnusocial_nginx_site echo " root /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs;" >> $gnusocial_nginx_site diff --git a/src/freedombone-app-gogs b/src/freedombone-app-gogs index 815a7954..c1e4a3d6 100755 --- a/src/freedombone-app-gogs +++ b/src/freedombone-app-gogs @@ -467,7 +467,7 @@ function install_gogs { echo ' listen 443 ssl;' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} echo " root /var/www/${GIT_DOMAIN_NAME}/htdocs;" >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} echo " server_name ${GIT_DOMAIN_NAME};" >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} - echo ' access_log off;' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} echo " error_log /var/log/nginx/${GIT_DOMAIN_NAME}_error.log ${WEBSERVER_LOG_LEVEL};" >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} echo '' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} function_check nginx_ssl @@ -490,7 +490,7 @@ function install_gogs { echo ' location = /robots.txt {' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} echo ' allow all;' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} echo ' log_not_found off;' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} - echo ' access_log off;' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} echo ' }' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} echo '}' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} echo '' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} @@ -501,7 +501,7 @@ function install_gogs { echo " listen 127.0.0.1:${GIT_ONION_PORT} default_server;" >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} echo " root /var/www/$GIT_DOMAIN_NAME/htdocs;" >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} echo " server_name $GIT_DOMAIN_NAME;" >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} - echo ' access_log off;' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} echo " error_log /var/log/nginx/${GIT_DOMAIN_NAME}_error.log ${WEBSERVER_LOG_LEVEL};" >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} echo '' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} function_check nginx_disable_sniffing @@ -522,7 +522,7 @@ function install_gogs { echo ' location = /robots.txt {' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} echo ' allow all;' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} echo ' log_not_found off;' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} - echo ' access_log off;' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} echo ' }' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} echo '}' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} diff --git a/src/freedombone-app-htmly b/src/freedombone-app-htmly index 53a5c64e..2730ef7c 100755 --- a/src/freedombone-app-htmly +++ b/src/freedombone-app-htmly @@ -435,7 +435,7 @@ function install_htmly_website { echo ' listen 443 ssl;' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo " root /var/www/$HTMLY_DOMAIN_NAME/htdocs;" >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo " server_name $HTMLY_DOMAIN_NAME;" >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME - echo ' access_log off;' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo " error_log /var/log/nginx/${HTMLY_DOMAIN_NAME}_error_ssl.log $WEBSERVER_LOG_LEVEL;" >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo ' index index.php;' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo ' charset utf-8;' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME @@ -518,7 +518,7 @@ function install_htmly_website_onion { echo " listen 127.0.0.1:${HTMLY_ONION_PORT} default_server;" >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo " root /var/www/$HTMLY_DOMAIN_NAME/htdocs;" >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo " server_name $HTMLY_DOMAIN_NAME;" >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME - echo ' access_log off;' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo " error_log /var/log/nginx/${HTMLY_DOMAIN_NAME}_error_ssl.log $WEBSERVER_LOG_LEVEL;" >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo ' index index.php;' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo ' charset utf-8;' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME diff --git a/src/freedombone-app-hubzilla b/src/freedombone-app-hubzilla index a6ac22cf..dfdbd34f 100755 --- a/src/freedombone-app-hubzilla +++ b/src/freedombone-app-hubzilla @@ -374,7 +374,7 @@ function install_hubzilla { echo " error_log /var/log/nginx/${HUBZILLA_DOMAIN_NAME}_error_ssl.log $WEBSERVER_LOG_LEVEL;" >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME echo ' index index.php;' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME echo ' charset utf-8;' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME - echo ' access_log off;' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME function_check nginx_ssl nginx_ssl $HUBZILLA_DOMAIN_NAME function_check nginx_disable_sniffing @@ -451,7 +451,7 @@ function install_hubzilla { echo " error_log /var/log/nginx/${HUBZILLA_DOMAIN_NAME}_error_ssl.log $WEBSERVER_LOG_LEVEL;" >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME echo ' index index.php;' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME echo ' charset utf-8;' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME - echo ' access_log off;' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME echo ' add_header Strict-Transport-Security max-age=15768000;' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME echo '' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME echo ' # rewrite to front controller as default rule' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME diff --git a/src/freedombone-app-lychee b/src/freedombone-app-lychee index 726a7163..629f7321 100755 --- a/src/freedombone-app-lychee +++ b/src/freedombone-app-lychee @@ -241,7 +241,7 @@ function install_lychee_website { echo ' listen 443 ssl;' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo " root /var/www/$LYCHEE_DOMAIN_NAME/htdocs;" >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo " server_name $LYCHEE_DOMAIN_NAME;" >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME - echo ' access_log off;' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo " error_log /var/log/nginx/${LYCHEE_DOMAIN_NAME}_error_ssl.log $WEBSERVER_LOG_LEVEL;" >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo ' index index.html;' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo ' charset utf-8;' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME @@ -313,7 +313,7 @@ function install_lychee_website_onion { else echo " server_name $LYCHEE_ONION_HOSTNAME;" >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME fi - echo ' access_log off;' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo " error_log /var/log/nginx/${LYCHEE_DOMAIN_NAME}_error_ssl.log $WEBSERVER_LOG_LEVEL;" >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo ' index index.html;' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo ' charset utf-8;' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME diff --git a/src/freedombone-app-mailpile b/src/freedombone-app-mailpile index e807cf76..71e8ad9b 100755 --- a/src/freedombone-app-mailpile +++ b/src/freedombone-app-mailpile @@ -309,8 +309,8 @@ function install_mailpile { echo ' add_header Strict-Transport-Security max-age=15768000;' >> $mailpile_nginx_site echo '' >> $mailpile_nginx_site echo ' # Logs' >> $mailpile_nginx_site - echo ' access_log off;' >> $mailpile_nginx_site - echo ' error_log off;' >> $mailpile_nginx_site + echo ' access_log /dev/null;' >> $mailpile_nginx_site + echo ' error_log /dev/null;' >> $mailpile_nginx_site echo '' >> $mailpile_nginx_site echo ' # Root' >> $mailpile_nginx_site echo " root /var/www/$MAILPILE_DOMAIN_NAME/mail;" >> $mailpile_nginx_site @@ -335,8 +335,8 @@ function install_mailpile { nginx_disable_sniffing $MAILPILE_DOMAIN_NAME echo '' >> $mailpile_nginx_site echo ' # Logs' >> $mailpile_nginx_site - echo ' access_log off;' >> $mailpile_nginx_site - echo ' error_log off;' >> $mailpile_nginx_site + echo ' access_log /dev/null;' >> $mailpile_nginx_site + echo ' error_log /dev/null;' >> $mailpile_nginx_site echo '' >> $mailpile_nginx_site echo ' # Root' >> $mailpile_nginx_site echo " root /var/www/$MAILPILE_DOMAIN_NAME/mail;" >> $mailpile_nginx_site diff --git a/src/freedombone-app-postactiv b/src/freedombone-app-postactiv index 5a65346e..4014ca6e 100755 --- a/src/freedombone-app-postactiv +++ b/src/freedombone-app-postactiv @@ -419,8 +419,8 @@ function install_postactiv_main { echo ' add_header Strict-Transport-Security max-age=15768000;' >> $postactiv_nginx_site echo '' >> $postactiv_nginx_site echo ' # Logs' >> $postactiv_nginx_site - echo ' access_log off;' >> $postactiv_nginx_site - echo ' error_log off;' >> $postactiv_nginx_site + echo ' access_log /dev/null;' >> $postactiv_nginx_site + echo ' error_log /dev/null;' >> $postactiv_nginx_site echo '' >> $postactiv_nginx_site echo ' # Root' >> $postactiv_nginx_site echo " root /var/www/$POSTACTIV_DOMAIN_NAME/htdocs;" >> $postactiv_nginx_site @@ -462,8 +462,8 @@ function install_postactiv_main { nginx_disable_sniffing $POSTACTIV_DOMAIN_NAME echo '' >> $postactiv_nginx_site echo ' # Logs' >> $postactiv_nginx_site - echo ' access_log off;' >> $postactiv_nginx_site - echo ' error_log off;' >> $postactiv_nginx_site + echo ' access_log /dev/null;' >> $postactiv_nginx_site + echo ' error_log /dev/null;' >> $postactiv_nginx_site echo '' >> $postactiv_nginx_site echo ' # Root' >> $postactiv_nginx_site echo " root /var/www/$POSTACTIV_DOMAIN_NAME/htdocs;" >> $postactiv_nginx_site diff --git a/src/freedombone-app-rss b/src/freedombone-app-rss index dd0ccd25..7a44c129 100755 --- a/src/freedombone-app-rss +++ b/src/freedombone-app-rss @@ -324,8 +324,8 @@ function install_rss_main { echo " listen 127.0.0.1:$RSS_MOBILE_READER_ONION_PORT;" >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME echo " server_name $RSS_MOBILE_READER_ONION_HOSTNAME;" >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME echo '' >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME - echo ' access_log off;' >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME - echo ' error_log off;' >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME + echo ' error_log /dev/null;' >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME echo '' >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME echo ' root /etc/share/ttrss-mobile;' >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME echo ' index index.html index.php;' >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME @@ -362,8 +362,8 @@ function install_rss_main { echo " listen 127.0.0.1:$RSS_READER_ONION_PORT default_server;" >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME echo " server_name $RSS_READER_ONION_HOSTNAME;" >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME echo '' >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME - echo ' access_log off;' >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME - echo ' error_log off;' >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME + echo ' error_log /dev/null;' >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME echo '' >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME echo ' root /etc/share/tt-rss;' >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME echo ' index index.php;' >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME diff --git a/src/freedombone-app-searx b/src/freedombone-app-searx index 0846e393..92bce04e 100755 --- a/src/freedombone-app-searx +++ b/src/freedombone-app-searx @@ -202,7 +202,7 @@ function install_searx { echo " listen 127.0.0.1:${SEARX_ONION_PORT} default_server;" >> /etc/nginx/sites-available/searx echo " root ${SEARX_PATH}/searx;" >> /etc/nginx/sites-available/searx echo " server_name ${SEARX_ONION_HOSTNAME};" >> /etc/nginx/sites-available/searx - echo ' access_log off;' >> /etc/nginx/sites-available/searx + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/searx echo " error_log /var/log/searx_error.log $WEBSERVER_LOG_LEVEL;" >> /etc/nginx/sites-available/searx echo '' >> /etc/nginx/sites-available/searx function_check nginx_disable_sniffing @@ -232,7 +232,7 @@ function install_searx { echo ' location = /robots.txt {' >> /etc/nginx/sites-available/searx echo ' allow all;' >> /etc/nginx/sites-available/searx echo ' log_not_found off;' >> /etc/nginx/sites-available/searx - echo ' access_log off;' >> /etc/nginx/sites-available/searx + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/searx echo ' }' >> /etc/nginx/sites-available/searx echo '}' >> /etc/nginx/sites-available/searx diff --git a/src/freedombone-app-webmail b/src/freedombone-app-webmail index 76a840d5..f1e617ea 100755 --- a/src/freedombone-app-webmail +++ b/src/freedombone-app-webmail @@ -207,8 +207,8 @@ function install_webmail { echo " server_name $WEBMAIL_ONION_HOSTNAME;" >> /etc/nginx/sites-available/webmail echo " root ${WEBMAIL_PATH};" >> /etc/nginx/sites-available/webmail echo ' index index.php index.html index.htm;' >> /etc/nginx/sites-available/webmail - echo ' access_log off;' >> /etc/nginx/sites-available/webmail - echo ' error_log off;' >> /etc/nginx/sites-available/webmail + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/webmail + echo ' error_log /dev/null;' >> /etc/nginx/sites-available/webmail echo ' location / {' >> /etc/nginx/sites-available/webmail echo ' try_files $uri $uri/ /index.php?q=$uri&$args;' >> /etc/nginx/sites-available/webmail echo ' }' >> /etc/nginx/sites-available/webmail @@ -225,7 +225,7 @@ function install_webmail { echo ' }' >> /etc/nginx/sites-available/webmail echo ' location ~ /\. {' >> /etc/nginx/sites-available/webmail echo ' deny all;' >> /etc/nginx/sites-available/webmail - echo ' access_log off;' >> /etc/nginx/sites-available/webmail + echo ' access_log /dev/null;' >> /etc/nginx/sites-available/webmail echo ' log_not_found off;' >> /etc/nginx/sites-available/webmail echo ' }' >> /etc/nginx/sites-available/webmail echo ' location ~ \.php$ {' >> /etc/nginx/sites-available/webmail diff --git a/src/freedombone-logging b/src/freedombone-logging index 1318e95c..7586944b 100755 --- a/src/freedombone-logging +++ b/src/freedombone-logging @@ -60,9 +60,9 @@ if [[ "$1" == "on" || "$1" == "On" || "$1" == "ON" ]]; then else if [ -d /etc/nginx ]; then for filename in /etc/nginx/sites-available/* ; do - sed -i 's|access_log.*|access_log off;|g' $filename - sed -i 's|warn_log.*|warn_log off;|g' $filename - sed -i 's|error_log.*|error_log off;|g' $filename + sed -i 's|access_log.*|access_log /dev/null;|g' $filename + sed -i 's|warn_log.*|warn_log /dev/null;|g' $filename + sed -i 's|error_log.*|error_log /dev/null;|g' $filename done shred -zu /var/log/nginx/* fi diff --git a/src/freedombone-utils-web b/src/freedombone-utils-web index 5fca5dbd..03d49847 100755 --- a/src/freedombone-utils-web +++ b/src/freedombone-utils-web @@ -104,7 +104,7 @@ function nginx_http_redirect { echo ' listen [::]:80;' >> $filename echo " server_name ${domain_name};" >> $filename echo " root /var/www/${domain_name}/htdocs;" >> $filename - echo ' access_log off;' >> $filename + echo ' access_log /dev/null;' >> $filename echo " error_log /var/log/nginx/${domain_name}_error.log $WEBSERVER_LOG_LEVEL;" >> $filename function_check nginx_limits nginx_limits $domain_name