Turning logs off
This commit is contained in:
parent
cb97f1b0b3
commit
6c101abdb3
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue