Change function name

This commit is contained in:
Bob Mottram 2018-03-05 18:15:29 +00:00
parent 9b166b255a
commit 24f58201cd
34 changed files with 125 additions and 125 deletions

View File

@ -372,8 +372,8 @@ function install_akaunting {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$AKAUNTING_DOMAIN_NAME" nginx_ssl "$AKAUNTING_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$AKAUNTING_DOMAIN_NAME" nginx_security_options "$AKAUNTING_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
@ -415,8 +415,8 @@ function install_akaunting {
function_check nginx_compress function_check nginx_compress
nginx_compress "$AKAUNTING_DOMAIN_NAME" nginx_compress "$AKAUNTING_DOMAIN_NAME"
echo '' >> "$akaunting_nginx_site" echo '' >> "$akaunting_nginx_site"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$AKAUNTING_DOMAIN_NAME" nginx_security_options "$AKAUNTING_DOMAIN_NAME"
{ echo ''; { echo '';
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';
echo ' error_log /dev/null;'; echo ' error_log /dev/null;';

View File

@ -380,8 +380,8 @@ function install_dokuwiki {
echo ' proxy_read_timeout 86400s;'; } >> "/etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME" echo ' proxy_read_timeout 86400s;'; } >> "/etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME"
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$DOKUWIKI_DOMAIN_NAME" nginx_ssl "$DOKUWIKI_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$DOKUWIKI_DOMAIN_NAME" nginx_security_options "$DOKUWIKI_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security "max-age=0;";'; { echo ' add_header Strict-Transport-Security "max-age=0;";';
echo ''; echo '';
echo ' # rewrite to front controller as default rule'; echo ' # rewrite to front controller as default rule';
@ -458,8 +458,8 @@ function install_dokuwiki {
echo ' index index.php;'; echo ' index index.php;';
echo ' charset utf-8;'; echo ' charset utf-8;';
echo ' proxy_read_timeout 86400s;'; } >> "/etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME" echo ' proxy_read_timeout 86400s;'; } >> "/etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$DOKUWIKI_DOMAIN_NAME" nginx_security_options "$DOKUWIKI_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security "max-age=0;";'; { echo ' add_header Strict-Transport-Security "max-age=0;";';
echo ''; echo '';
echo ' # rewrite to front controller as default rule'; echo ' # rewrite to front controller as default rule';

View File

@ -341,8 +341,8 @@ function install_edith {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$EDITH_DOMAIN_NAME" nginx_ssl "$EDITH_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$EDITH_DOMAIN_NAME" nginx_security_options "$EDITH_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
@ -379,8 +379,8 @@ function install_edith {
function_check nginx_compress function_check nginx_compress
nginx_compress "$EDITH_DOMAIN_NAME" nginx_compress "$EDITH_DOMAIN_NAME"
echo '' >> "$edith_nginx_site" echo '' >> "$edith_nginx_site"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$EDITH_DOMAIN_NAME" nginx_security_options "$EDITH_DOMAIN_NAME"
{ echo ''; { echo '';
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';
echo ' error_log /dev/null;'; echo ' error_log /dev/null;';

View File

@ -557,8 +557,8 @@ function install_etherpad {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$ETHERPAD_DOMAIN_NAME" nginx_ssl "$ETHERPAD_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$ETHERPAD_DOMAIN_NAME" nginx_security_options "$ETHERPAD_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
@ -584,8 +584,8 @@ function install_etherpad {
echo " listen 127.0.0.1:$ETHERPAD_ONION_PORT default_server;"; echo " listen 127.0.0.1:$ETHERPAD_ONION_PORT default_server;";
echo " server_name $ETHERPAD_ONION_HOSTNAME;"; echo " server_name $ETHERPAD_ONION_HOSTNAME;";
echo ''; } >> "$etherpad_nginx_site" echo ''; } >> "$etherpad_nginx_site"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$ETHERPAD_DOMAIN_NAME" nginx_security_options "$ETHERPAD_DOMAIN_NAME"
{ echo ''; { echo '';
echo ' # Logs'; echo ' # Logs';
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';

View File

@ -419,8 +419,8 @@ function install_friendica {
echo ' access_log /dev/null;'; } >> "/etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME" echo ' access_log /dev/null;'; } >> "/etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME"
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$FRIENDICA_DOMAIN_NAME" nginx_ssl "$FRIENDICA_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$FRIENDICA_DOMAIN_NAME" nginx_security_options "$FRIENDICA_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
echo ' # rewrite to front controller as default rule'; echo ' # rewrite to front controller as default rule';
@ -493,7 +493,7 @@ function install_friendica {
echo ' # rewrite to front controller as default rule'; echo ' # rewrite to front controller as default rule';
echo ' location / {'; } > "/etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME" echo ' location / {'; } > "/etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME"
nginx_limits "$FRIENDICA_DOMAIN_NAME" nginx_limits "$FRIENDICA_DOMAIN_NAME"
nginx_disable_sniffing "$FRIENDICA_DOMAIN_NAME" nginx_security_options "$FRIENDICA_DOMAIN_NAME"
{ echo " rewrite ^/(.*) /index.php?q=\$uri&\$args last;"; { echo " rewrite ^/(.*) /index.php?q=\$uri&\$args last;";
echo ' }'; echo ' }';
echo ''; echo '';
@ -515,7 +515,7 @@ function install_friendica {
echo ' # or a unix socket'; echo ' # or a unix socket';
echo ' location ~* \.php$ {'; } >> "/etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME" echo ' location ~* \.php$ {'; } >> "/etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME"
nginx_limits "$FRIENDICA_DOMAIN_NAME" nginx_limits "$FRIENDICA_DOMAIN_NAME"
nginx_disable_sniffing "$FRIENDICA_DOMAIN_NAME" nginx_security_options "$FRIENDICA_DOMAIN_NAME"
{ echo ' # Zero-day exploit defense.'; { echo ' # Zero-day exploit defense.';
echo ' # http://forum.nginx.org/read.php?2,88845,page=3'; echo ' # http://forum.nginx.org/read.php?2,88845,page=3';
echo " # Won't work properly (404 error) if the file is not stored on this"; echo " # Won't work properly (404 error) if the file is not stored on this";

View File

@ -518,8 +518,8 @@ function install_ghost {
echo ''; } >> "/etc/nginx/sites-available/${GHOST_DOMAIN_NAME}" echo ''; } >> "/etc/nginx/sites-available/${GHOST_DOMAIN_NAME}"
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "${GHOST_DOMAIN_NAME}" nginx_ssl "${GHOST_DOMAIN_NAME}"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "${GHOST_DOMAIN_NAME}" nginx_security_options "${GHOST_DOMAIN_NAME}"
{ echo ' add_header Strict-Transport-Security max-age=0;'; { echo ' add_header Strict-Transport-Security max-age=0;';
echo ''; echo '';
echo ' location / {'; } >> "/etc/nginx/sites-available/${GHOST_DOMAIN_NAME}" echo ' location / {'; } >> "/etc/nginx/sites-available/${GHOST_DOMAIN_NAME}"
@ -550,8 +550,8 @@ function install_ghost {
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';
echo " error_log /dev/null;"; echo " error_log /dev/null;";
echo ''; } >> "/etc/nginx/sites-available/${GHOST_DOMAIN_NAME}" echo ''; } >> "/etc/nginx/sites-available/${GHOST_DOMAIN_NAME}"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "${GHOST_DOMAIN_NAME}" nginx_security_options "${GHOST_DOMAIN_NAME}"
{ echo ' add_header Strict-Transport-Security max-age=0;'; { echo ' add_header Strict-Transport-Security max-age=0;';
echo ''; echo '';
echo ' location / {'; } >> "/etc/nginx/sites-available/${GHOST_DOMAIN_NAME}" echo ' location / {'; } >> "/etc/nginx/sites-available/${GHOST_DOMAIN_NAME}"

View File

@ -707,8 +707,8 @@ function install_gnusocial_main {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$GNUSOCIAL_DOMAIN_NAME" nginx_ssl "$GNUSOCIAL_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$GNUSOCIAL_DOMAIN_NAME" nginx_security_options "$GNUSOCIAL_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
@ -756,8 +756,8 @@ function install_gnusocial_main {
function_check nginx_compress function_check nginx_compress
nginx_compress "$GNUSOCIAL_DOMAIN_NAME" nginx_compress "$GNUSOCIAL_DOMAIN_NAME"
echo '' >> "$gnusocial_nginx_site" echo '' >> "$gnusocial_nginx_site"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$GNUSOCIAL_DOMAIN_NAME" nginx_security_options "$GNUSOCIAL_DOMAIN_NAME"
{ echo ''; { echo '';
echo ' # Logs'; echo ' # Logs';
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';

View File

@ -591,8 +591,8 @@ function install_gogs {
echo ''; } >> "/etc/nginx/sites-available/${GIT_DOMAIN_NAME}" echo ''; } >> "/etc/nginx/sites-available/${GIT_DOMAIN_NAME}"
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "${GIT_DOMAIN_NAME}" nginx_ssl "${GIT_DOMAIN_NAME}"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "${GIT_DOMAIN_NAME}" nginx_security_options "${GIT_DOMAIN_NAME}"
{ echo ' add_header Strict-Transport-Security max-age=0;'; { echo ' add_header Strict-Transport-Security max-age=0;';
echo ''; echo '';
echo ' location / {'; } >> "/etc/nginx/sites-available/${GIT_DOMAIN_NAME}" echo ' location / {'; } >> "/etc/nginx/sites-available/${GIT_DOMAIN_NAME}"
@ -623,8 +623,8 @@ function install_gogs {
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';
echo " error_log /dev/null;"; echo " error_log /dev/null;";
echo ''; } >> "/etc/nginx/sites-available/${GIT_DOMAIN_NAME}" echo ''; } >> "/etc/nginx/sites-available/${GIT_DOMAIN_NAME}"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "${GIT_DOMAIN_NAME}" nginx_security_options "${GIT_DOMAIN_NAME}"
{ echo ' add_header Strict-Transport-Security max-age=0;'; { echo ' add_header Strict-Transport-Security max-age=0;';
echo ''; echo '';
echo ' location / {'; } >> "/etc/nginx/sites-available/${GIT_DOMAIN_NAME}" echo ' location / {'; } >> "/etc/nginx/sites-available/${GIT_DOMAIN_NAME}"

View File

@ -460,8 +460,8 @@ function install_htmly_website {
echo ' proxy_read_timeout 86400s;'; } >> "/etc/nginx/sites-available/$HTMLY_DOMAIN_NAME" echo ' proxy_read_timeout 86400s;'; } >> "/etc/nginx/sites-available/$HTMLY_DOMAIN_NAME"
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$HTMLY_DOMAIN_NAME" nginx_ssl "$HTMLY_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$HTMLY_DOMAIN_NAME" nginx_security_options "$HTMLY_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security "max-age=0;";'; { echo ' add_header Strict-Transport-Security "max-age=0;";';
echo ''; echo '';
echo ' # rewrite to front controller as default rule'; echo ' # rewrite to front controller as default rule';
@ -542,8 +542,8 @@ function install_htmly_website_onion {
echo ' index index.php;'; echo ' index index.php;';
echo ' charset utf-8;'; echo ' charset utf-8;';
echo ' proxy_read_timeout 86400s;'; } >> "/etc/nginx/sites-available/$HTMLY_DOMAIN_NAME" echo ' proxy_read_timeout 86400s;'; } >> "/etc/nginx/sites-available/$HTMLY_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$HTMLY_DOMAIN_NAME" nginx_security_options "$HTMLY_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security "max-age=0;";'; { echo ' add_header Strict-Transport-Security "max-age=0;";';
echo ''; echo '';
echo ' # rewrite to front controller as default rule'; echo ' # rewrite to front controller as default rule';

View File

@ -421,8 +421,8 @@ function install_hubzilla {
echo ' access_log /dev/null;'; } >> "/etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME" echo ' access_log /dev/null;'; } >> "/etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME"
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$HUBZILLA_DOMAIN_NAME" nginx_ssl "$HUBZILLA_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$HUBZILLA_DOMAIN_NAME" nginx_security_options "$HUBZILLA_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
echo ' # rewrite to front controller as default rule'; echo ' # rewrite to front controller as default rule';
@ -494,7 +494,7 @@ function install_hubzilla {
echo ' # rewrite to front controller as default rule'; echo ' # rewrite to front controller as default rule';
echo ' location / {'; } > "/etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME" echo ' location / {'; } > "/etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME"
nginx_limits "$HUBZILLA_DOMAIN_NAME" nginx_limits "$HUBZILLA_DOMAIN_NAME"
nginx_disable_sniffing "$HUBZILLA_DOMAIN_NAME" nginx_security_options "$HUBZILLA_DOMAIN_NAME"
{ echo " rewrite ^/(.*) /index.php?q=\$uri&\$args last;"; { echo " rewrite ^/(.*) /index.php?q=\$uri&\$args last;";
echo ' }'; echo ' }';
echo ''; echo '';
@ -516,7 +516,7 @@ function install_hubzilla {
echo ' # or a unix socket'; echo ' # or a unix socket';
echo ' location ~* \.php$ {'; } >> "/etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME" echo ' location ~* \.php$ {'; } >> "/etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME"
nginx_limits "$HUBZILLA_DOMAIN_NAME" nginx_limits "$HUBZILLA_DOMAIN_NAME"
nginx_disable_sniffing "$HUBZILLA_DOMAIN_NAME" nginx_security_options "$HUBZILLA_DOMAIN_NAME"
{ echo ' # Zero-day exploit defense.'; { echo ' # Zero-day exploit defense.';
echo ' # http://forum.nginx.org/read.php?2,88845,page=3'; echo ' # http://forum.nginx.org/read.php?2,88845,page=3';
echo " # Won't work properly (404 error) if the file is not stored on this"; echo " # Won't work properly (404 error) if the file is not stored on this";

View File

@ -286,8 +286,8 @@ function install_jitsi {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl ${JITSI_DOMAIN_NAME} nginx_ssl ${JITSI_DOMAIN_NAME}
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing ${JITSI_DOMAIN_NAME} nginx_security_options ${JITSI_DOMAIN_NAME}
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';

View File

@ -468,8 +468,8 @@ function install_kanboard {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$KANBOARD_DOMAIN_NAME" nginx_ssl "$KANBOARD_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$KANBOARD_DOMAIN_NAME" nginx_security_options "$KANBOARD_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
@ -517,8 +517,8 @@ function install_kanboard {
function_check nginx_compress function_check nginx_compress
nginx_compress "$KANBOARD_DOMAIN_NAME" nginx_compress "$KANBOARD_DOMAIN_NAME"
echo '' >> "$kanboard_nginx_site" echo '' >> "$kanboard_nginx_site"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$KANBOARD_DOMAIN_NAME" nginx_security_options "$KANBOARD_DOMAIN_NAME"
{ echo ''; { echo '';
echo ' # Logs'; echo ' # Logs';
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';

View File

@ -742,8 +742,8 @@ function install_keyserver {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl $KEYSERVER_DOMAIN_NAME nginx_ssl $KEYSERVER_DOMAIN_NAME
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing $KEYSERVER_DOMAIN_NAME nginx_security_options $KEYSERVER_DOMAIN_NAME
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
@ -792,8 +792,8 @@ function install_keyserver {
echo ' return 404;'; echo ' return 404;';
echo ' }'; echo ' }';
echo ''; } >> $keyserver_nginx_site echo ''; } >> $keyserver_nginx_site
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing $KEYSERVER_DOMAIN_NAME nginx_security_options $KEYSERVER_DOMAIN_NAME
{ echo ''; { echo '';
echo ' # Logs'; echo ' # Logs';
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';

View File

@ -553,8 +553,8 @@ function install_koel_main {
function_check nginx_ssl mobile function_check nginx_ssl mobile
nginx_ssl "$KOEL_DOMAIN_NAME" nginx_ssl "$KOEL_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$KOEL_DOMAIN_NAME" nginx_security_options "$KOEL_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';

View File

@ -270,8 +270,8 @@ function install_lychee_website {
echo ' proxy_read_timeout 86400s;'; } >> "/etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME" echo ' proxy_read_timeout 86400s;'; } >> "/etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME"
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$LYCHEE_DOMAIN_NAME" nginx_ssl "$LYCHEE_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$LYCHEE_DOMAIN_NAME" nginx_security_options "$LYCHEE_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security "max-age=0;";'; { echo ' add_header Strict-Transport-Security "max-age=0;";';
echo ''; echo '';
echo ' # rewrite to front controller as default rule'; echo ' # rewrite to front controller as default rule';
@ -331,8 +331,8 @@ function install_lychee_website_onion {
echo ' index index.html;'; echo ' index index.html;';
echo ' charset utf-8;'; echo ' charset utf-8;';
echo ' proxy_read_timeout 86400s;'; } >> "/etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME" echo ' proxy_read_timeout 86400s;'; } >> "/etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$LYCHEE_DOMAIN_NAME" nginx_security_options "$LYCHEE_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security "max-age=0;";'; { echo ' add_header Strict-Transport-Security "max-age=0;";';
echo ''; echo '';
echo ' # rewrite to front controller as default rule'; echo ' # rewrite to front controller as default rule';

View File

@ -248,8 +248,8 @@ function install_mailpile {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl $MAILPILE_DOMAIN_NAME nginx_ssl $MAILPILE_DOMAIN_NAME
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing $MAILPILE_DOMAIN_NAME nginx_security_options $MAILPILE_DOMAIN_NAME
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
@ -280,8 +280,8 @@ function install_mailpile {
echo " listen 127.0.0.1:$MAILPILE_ONION_PORT default_server;"; echo " listen 127.0.0.1:$MAILPILE_ONION_PORT default_server;";
echo " server_name $MAILPILE_ONION_HOSTNAME;"; echo " server_name $MAILPILE_ONION_HOSTNAME;";
echo ''; } >> $mailpile_nginx_site echo ''; } >> $mailpile_nginx_site
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing $MAILPILE_DOMAIN_NAME nginx_security_options $MAILPILE_DOMAIN_NAME
{ echo ''; { echo '';
echo ' # Logs'; echo ' # Logs';
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';

View File

@ -135,8 +135,8 @@ function matrix_nginx {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl ${MATRIX_DOMAIN_NAME} nginx_ssl ${MATRIX_DOMAIN_NAME}
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing ${MATRIX_DOMAIN_NAME} nginx_security_options ${MATRIX_DOMAIN_NAME}
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
@ -164,8 +164,8 @@ function matrix_nginx {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl ${MATRIX_DOMAIN_NAME} nginx_ssl ${MATRIX_DOMAIN_NAME}
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing ${MATRIX_DOMAIN_NAME} nginx_security_options ${MATRIX_DOMAIN_NAME}
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
@ -193,8 +193,8 @@ function matrix_nginx {
echo " listen 127.0.0.1:$MATRIX_FEDERATION_ONION_PORT default_server;"; echo " listen 127.0.0.1:$MATRIX_FEDERATION_ONION_PORT default_server;";
echo " server_name $MATRIX_DOMAIN_NAME;"; echo " server_name $MATRIX_DOMAIN_NAME;";
echo ''; } >> $matrix_nginx_site echo ''; } >> $matrix_nginx_site
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing $MATRIX_DOMAIN_NAME nginx_security_options $MATRIX_DOMAIN_NAME
{ echo ''; { echo '';
echo ' # Logs'; echo ' # Logs';
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';
@ -214,8 +214,8 @@ function matrix_nginx {
echo " listen 127.0.0.1:$MATRIX_ONION_PORT default_server;"; echo " listen 127.0.0.1:$MATRIX_ONION_PORT default_server;";
echo " server_name $MATRIX_DOMAIN_NAME;"; echo " server_name $MATRIX_DOMAIN_NAME;";
echo ''; } >> $matrix_nginx_site echo ''; } >> $matrix_nginx_site
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing $MATRIX_DOMAIN_NAME nginx_security_options $MATRIX_DOMAIN_NAME
{ echo ''; { echo '';
echo ' # Logs'; echo ' # Logs';
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';

View File

@ -381,8 +381,8 @@ function install_mediagoblin {
echo ''; } >> "/etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME" echo ''; } >> "/etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME"
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$MEDIAGOBLIN_DOMAIN_NAME" nginx_ssl "$MEDIAGOBLIN_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$MEDIAGOBLIN_DOMAIN_NAME" nginx_security_options "$MEDIAGOBLIN_DOMAIN_NAME"
function_check nginx_limits function_check nginx_limits
nginx_limits "$MEDIAGOBLIN_DOMAIN_NAME" 800m nginx_limits "$MEDIAGOBLIN_DOMAIN_NAME" 800m
{ echo ''; { echo '';
@ -438,8 +438,8 @@ function install_mediagoblin {
echo ' default_type application/octet-stream;'; echo ' default_type application/octet-stream;';
echo ' sendfile on;'; echo ' sendfile on;';
echo ''; } >> "/etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME" echo ''; } >> "/etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$MEDIAGOBLIN_DOMAIN_NAME" nginx_security_options "$MEDIAGOBLIN_DOMAIN_NAME"
function_check nginx_limits function_check nginx_limits
nginx_limits "$MEDIAGOBLIN_DOMAIN_NAME" 800m nginx_limits "$MEDIAGOBLIN_DOMAIN_NAME" 800m
{ echo ''; { echo '';

View File

@ -444,8 +444,8 @@ function install_movim {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$MOVIM_DOMAIN_NAME" nginx_ssl "$MOVIM_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$MOVIM_DOMAIN_NAME" nginx_security_options "$MOVIM_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
@ -506,8 +506,8 @@ function install_movim {
function_check nginx_compress function_check nginx_compress
nginx_compress "$MOVIM_DOMAIN_NAME" nginx_compress "$MOVIM_DOMAIN_NAME"
echo '' >> "$movim_nginx_site" echo '' >> "$movim_nginx_site"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$MOVIM_DOMAIN_NAME" nginx_security_options "$MOVIM_DOMAIN_NAME"
{ echo ''; { echo '';
echo ' # Logs'; echo ' # Logs';
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';

View File

@ -490,8 +490,8 @@ function install_nextcloud_main {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$NEXTCLOUD_DOMAIN_NAME" mobile nginx_ssl "$NEXTCLOUD_DOMAIN_NAME" mobile
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$NEXTCLOUD_DOMAIN_NAME" nginx_security_options "$NEXTCLOUD_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
@ -554,8 +554,8 @@ function install_nextcloud_main {
echo " listen 127.0.0.1:$NEXTCLOUD_ONION_PORT default_server;"; echo " listen 127.0.0.1:$NEXTCLOUD_ONION_PORT default_server;";
echo " server_name $NEXTCLOUD_DOMAIN_NAME;"; echo " server_name $NEXTCLOUD_DOMAIN_NAME;";
echo ''; } >> "$nextcloud_nginx_site" echo ''; } >> "$nextcloud_nginx_site"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$NEXTCLOUD_DOMAIN_NAME" nginx_security_options "$NEXTCLOUD_DOMAIN_NAME"
{ echo ''; { echo '';
echo ' # Logs'; echo ' # Logs';
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';

View File

@ -376,8 +376,8 @@ function peertube_setup_web {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$PEERTUBE_DOMAIN_NAME" mobile nginx_ssl "$PEERTUBE_DOMAIN_NAME" mobile
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$PEERTUBE_DOMAIN_NAME" nginx_security_options "$PEERTUBE_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';

View File

@ -84,8 +84,8 @@ function install_pelican_website {
echo ' charset utf-8;'; } >> "/etc/nginx/sites-available/$PELICAN_DOMAIN_NAME" echo ' charset utf-8;'; } >> "/etc/nginx/sites-available/$PELICAN_DOMAIN_NAME"
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$PELICAN_DOMAIN_NAME" nginx_ssl "$PELICAN_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$PELICAN_DOMAIN_NAME" nginx_security_options "$PELICAN_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security "max-age=0;";'; { echo ' add_header Strict-Transport-Security "max-age=0;";';
echo ''; echo '';
echo ' location / {'; } >> "/etc/nginx/sites-available/$PELICAN_DOMAIN_NAME" echo ' location / {'; } >> "/etc/nginx/sites-available/$PELICAN_DOMAIN_NAME"
@ -125,8 +125,8 @@ function install_pelican_website_onion {
echo " error_log /dev/null;"; echo " error_log /dev/null;";
echo ' index index.html;'; echo ' index index.html;';
echo ' charset utf-8;'; } >> "/etc/nginx/sites-available/$PELICAN_DOMAIN_NAME" echo ' charset utf-8;'; } >> "/etc/nginx/sites-available/$PELICAN_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$PELICAN_DOMAIN_NAME" nginx_security_options "$PELICAN_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security "max-age=0;";'; { echo ' add_header Strict-Transport-Security "max-age=0;";';
echo ''; echo '';
echo ' location / {'; } >> "/etc/nginx/sites-available/$PELICAN_DOMAIN_NAME" echo ' location / {'; } >> "/etc/nginx/sites-available/$PELICAN_DOMAIN_NAME"

View File

@ -1029,8 +1029,8 @@ function install_pleroma {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$PLEROMA_DOMAIN_NAME" nginx_ssl "$PLEROMA_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$PLEROMA_DOMAIN_NAME" nginx_security_options "$PLEROMA_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
@ -1069,8 +1069,8 @@ function install_pleroma {
function_check nginx_compress function_check nginx_compress
nginx_compress "$PLEROMA_DOMAIN_NAME" nginx_compress "$PLEROMA_DOMAIN_NAME"
echo '' >> "$pleroma_nginx_site" echo '' >> "$pleroma_nginx_site"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$PLEROMA_DOMAIN_NAME" nginx_security_options "$PLEROMA_DOMAIN_NAME"
{ echo ''; { echo '';
echo ' # Logs'; echo ' # Logs';
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';

View File

@ -721,8 +721,8 @@ function install_postactiv_main {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$POSTACTIV_DOMAIN_NAME" nginx_ssl "$POSTACTIV_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$POSTACTIV_DOMAIN_NAME" nginx_security_options "$POSTACTIV_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
@ -767,8 +767,8 @@ function install_postactiv_main {
echo " listen 127.0.0.1:$POSTACTIV_ONION_PORT default_server;"; echo " listen 127.0.0.1:$POSTACTIV_ONION_PORT default_server;";
echo " server_name $POSTACTIV_ONION_HOSTNAME;"; echo " server_name $POSTACTIV_ONION_HOSTNAME;";
echo ''; } >> "$postactiv_nginx_site" echo ''; } >> "$postactiv_nginx_site"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$POSTACTIV_DOMAIN_NAME" nginx_security_options "$POSTACTIV_DOMAIN_NAME"
echo '' >> "$postactiv_nginx_site" echo '' >> "$postactiv_nginx_site"
function_check nginx_compress function_check nginx_compress
nginx_compress "$POSTACTIV_DOMAIN_NAME" nginx_compress "$POSTACTIV_DOMAIN_NAME"

View File

@ -351,8 +351,8 @@ function install_privatebin {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$PRIVATEBIN_DOMAIN_NAME" nginx_ssl "$PRIVATEBIN_DOMAIN_NAME"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$PRIVATEBIN_DOMAIN_NAME" nginx_security_options "$PRIVATEBIN_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
@ -393,8 +393,8 @@ function install_privatebin {
function_check nginx_compress function_check nginx_compress
nginx_compress "$PRIVATEBIN_DOMAIN_NAME" nginx_compress "$PRIVATEBIN_DOMAIN_NAME"
echo '' >> "$privatebin_nginx_site" echo '' >> "$privatebin_nginx_site"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$PRIVATEBIN_DOMAIN_NAME" nginx_security_options "$PRIVATEBIN_DOMAIN_NAME"
{ echo ''; { echo '';
echo ' # Logs'; echo ' # Logs';
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';

View File

@ -476,8 +476,8 @@ function install_radicale {
echo ''; } > "/etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}" echo ''; } > "/etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}"
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "${DEFAULT_DOMAIN_NAME}" mobile nginx_ssl "${DEFAULT_DOMAIN_NAME}" mobile
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "${DEFAULT_DOMAIN_NAME}" nginx_security_options "${DEFAULT_DOMAIN_NAME}"
{ echo ''; { echo '';
echo " server_name ${DEFAULT_DOMAIN_NAME};"; echo " server_name ${DEFAULT_DOMAIN_NAME};";

View File

@ -279,8 +279,8 @@ function install_riot {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl $RIOT_DOMAIN_NAME nginx_ssl $RIOT_DOMAIN_NAME
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing $RIOT_DOMAIN_NAME nginx_security_options $RIOT_DOMAIN_NAME
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
@ -306,8 +306,8 @@ function install_riot {
echo " listen 127.0.0.1:$RIOT_ONION_PORT default_server;"; echo " listen 127.0.0.1:$RIOT_ONION_PORT default_server;";
echo " server_name $RIOT_ONION_HOSTNAME;"; echo " server_name $RIOT_ONION_HOSTNAME;";
echo ''; } >> $riot_nginx_site echo ''; } >> $riot_nginx_site
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing $RIOT_DOMAIN_NAME nginx_security_options $RIOT_DOMAIN_NAME
{ echo ''; { echo '';
echo ' # Logs'; echo ' # Logs';
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';

View File

@ -317,8 +317,8 @@ function scuttlebot_git_setup {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl $SCUTTLEBOT_DOMAIN_NAME nginx_ssl $SCUTTLEBOT_DOMAIN_NAME
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing $SCUTTLEBOT_DOMAIN_NAME nginx_security_options $SCUTTLEBOT_DOMAIN_NAME
fi fi
{ echo ''; { echo '';

View File

@ -967,8 +967,8 @@ function install_searx {
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';
echo " error_log /var/log/searx_error.log $WEBSERVER_LOG_LEVEL;"; echo " error_log /var/log/searx_error.log $WEBSERVER_LOG_LEVEL;";
echo ''; } > /etc/nginx/sites-available/searx echo ''; } > /etc/nginx/sites-available/searx
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing searx nginx_security_options searx
{ echo ' add_header Strict-Transport-Security max-age=0;'; { echo ' add_header Strict-Transport-Security max-age=0;';
echo ''; echo '';
echo ' location / {'; } >> /etc/nginx/sites-available/searx echo ' location / {'; } >> /etc/nginx/sites-available/searx

View File

@ -608,8 +608,8 @@ function create_tahoelafs_web {
echo " listen 127.0.0.1:$TAHOELAFS_ONION_PORT default_server;"; echo " listen 127.0.0.1:$TAHOELAFS_ONION_PORT default_server;";
echo " server_name $TAHOELAFS_ONION_HOSTNAME;"; echo " server_name $TAHOELAFS_ONION_HOSTNAME;";
echo ''; } > "$tahoelafs_nginx_site" echo ''; } > "$tahoelafs_nginx_site"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing tahoelafs nginx_security_options tahoelafs
{ echo ''; { echo '';
echo ' # Logs'; echo ' # Logs';
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';

View File

@ -674,8 +674,8 @@ function install_turtl_nginx {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl $TURTL_DOMAIN_NAME nginx_ssl $TURTL_DOMAIN_NAME
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing $TURTL_DOMAIN_NAME nginx_security_options $TURTL_DOMAIN_NAME
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
@ -698,8 +698,8 @@ function install_turtl_nginx {
echo " listen 127.0.0.1:${TURTL_ONION_PORT};"; echo " listen 127.0.0.1:${TURTL_ONION_PORT};";
echo " server_name ${TURTL_ONION_HOSTNAME};"; echo " server_name ${TURTL_ONION_HOSTNAME};";
echo ''; } >> $turtl_nginx_site echo ''; } >> $turtl_nginx_site
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing $TURTL_DOMAIN_NAME nginx_security_options $TURTL_DOMAIN_NAME
{ echo ''; { echo '';
echo ' # Logs'; echo ' # Logs';
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';

View File

@ -665,7 +665,7 @@ if [ $app_onion_only ]; then
echo " echo ' # Security' >> \$${app_name}_nginx_site" echo " echo ' # Security' >> \$${app_name}_nginx_site"
echo " nginx_ssl \$${app_name_upper}_DOMAIN_NAME" echo " nginx_ssl \$${app_name_upper}_DOMAIN_NAME"
echo '' echo ''
echo " nginx_disable_sniffing \$${app_name_upper}_DOMAIN_NAME" echo " nginx_security_options \$${app_name_upper}_DOMAIN_NAME"
echo '' echo ''
echo " echo ' add_header Strict-Transport-Security max-age=15768000;' >> \$${app_name}_nginx_site" echo " echo ' add_header Strict-Transport-Security max-age=15768000;' >> \$${app_name}_nginx_site"
echo " echo '' >> \$${app_name}_nginx_site" echo " echo '' >> \$${app_name}_nginx_site"
@ -709,7 +709,7 @@ echo " echo \" server_name \$${app_name_upper}_ONION_HOSTNAME;\" >> \$${ap
echo " echo '' >> \$${app_name}_nginx_site" echo " echo '' >> \$${app_name}_nginx_site"
echo " nginx_compress \$${app_name_upper}_DOMAIN_NAME" echo " nginx_compress \$${app_name_upper}_DOMAIN_NAME"
echo " echo '' >> \$${app_name}_nginx_site" echo " echo '' >> \$${app_name}_nginx_site"
echo " nginx_disable_sniffing \$${app_name_upper}_DOMAIN_NAME" echo " nginx_security_options \$${app_name_upper}_DOMAIN_NAME"
echo " echo '' >> \$${app_name}_nginx_site" echo " echo '' >> \$${app_name}_nginx_site"
echo " echo ' # Logs' >> \$${app_name}_nginx_site" echo " echo ' # Logs' >> \$${app_name}_nginx_site"
echo " echo ' access_log /dev/null;' >> \$${app_name}_nginx_site" echo " echo ' access_log /dev/null;' >> \$${app_name}_nginx_site"

View File

@ -81,8 +81,8 @@ function install_turn {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "${DEFAULT_DOMAIN_NAME}" nginx_ssl "${DEFAULT_DOMAIN_NAME}"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "${DEFAULT_DOMAIN_NAME}" nginx_security_options "${DEFAULT_DOMAIN_NAME}"
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
@ -109,8 +109,8 @@ function install_turn {
echo " listen 127.0.0.1:$TURN_ONION_PORT default_server;"; echo " listen 127.0.0.1:$TURN_ONION_PORT default_server;";
echo " server_name $DEFAULT_DOMAIN_NAME;"; echo " server_name $DEFAULT_DOMAIN_NAME;";
echo ''; } >> "$turn_nginx_site" echo ''; } >> "$turn_nginx_site"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$DEFAULT_DOMAIN_NAME" nginx_security_options "$DEFAULT_DOMAIN_NAME"
{ echo ''; { echo '';
echo ' # Logs'; echo ' # Logs';
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';

View File

@ -71,7 +71,7 @@ function validate_domain_name {
fi fi
} }
function nginx_disable_sniffing { function nginx_security_options {
domain_name=$1 domain_name=$1
filename=/etc/nginx/sites-available/$domain_name filename=/etc/nginx/sites-available/$domain_name
{ echo ' add_header X-Frame-Options DENY;'; { echo ' add_header X-Frame-Options DENY;';
@ -913,8 +913,8 @@ function create_default_web_site {
function_check nginx_ssl function_check nginx_ssl
nginx_ssl "$DEFAULT_DOMAIN_NAME" mobile nginx_ssl "$DEFAULT_DOMAIN_NAME" mobile
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$DEFAULT_DOMAIN_NAME" nginx_security_options "$DEFAULT_DOMAIN_NAME"
{ echo ' add_header Strict-Transport-Security max-age=15768000;'; { echo ' add_header Strict-Transport-Security max-age=15768000;';
echo ''; echo '';
@ -946,8 +946,8 @@ function create_default_web_site {
echo " listen 127.0.0.1:$DEFAULT_DOMAIN_ONION_PORT default_server;"; echo " listen 127.0.0.1:$DEFAULT_DOMAIN_ONION_PORT default_server;";
echo " server_name $DEFAULT_DOMAIN_NAME;"; echo " server_name $DEFAULT_DOMAIN_NAME;";
echo ''; } >> "$nginx_site" echo ''; } >> "$nginx_site"
function_check nginx_disable_sniffing function_check nginx_security_options
nginx_disable_sniffing "$DEFAULT_DOMAIN_NAME" nginx_security_options "$DEFAULT_DOMAIN_NAME"
{ echo ''; { echo '';
echo ' # Logs'; echo ' # Logs';
echo ' access_log /dev/null;'; echo ' access_log /dev/null;';