diff --git a/src/freedombone-app-dokuwiki b/src/freedombone-app-dokuwiki index 023c279c..cc95c5f5 100755 --- a/src/freedombone-app-dokuwiki +++ b/src/freedombone-app-dokuwiki @@ -387,8 +387,6 @@ function install_dokuwiki { echo ' rewrite ^/(.*) /index.php?q=$uri&$args last;' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo ' }' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo '' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME - nginx_keybase $DOKUWIKI_DOMAIN_NAME - echo '' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo ' # statically serve these file types when possible' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo ' # otherwise fall back to front controller' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo ' # allow browser to cache them' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME @@ -467,7 +465,6 @@ function install_dokuwiki { echo ' rewrite ^/(.*) /index.php?q=$uri&$args last;' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo ' }' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo '' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME - nginx_keybase $DOKUWIKI_DOMAIN_NAME echo ' # statically serve these file types when possible' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo ' # otherwise fall back to front controller' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME echo ' # allow browser to cache them' >> /etc/nginx/sites-available/$DOKUWIKI_DOMAIN_NAME diff --git a/src/freedombone-app-etherpad b/src/freedombone-app-etherpad index ba0c44aa..eea751a1 100755 --- a/src/freedombone-app-etherpad +++ b/src/freedombone-app-etherpad @@ -573,8 +573,6 @@ function install_etherpad { echo ' proxy_set_header Host $host;' >> $etherpad_nginx_site echo ' proxy_buffering off;' >> $etherpad_nginx_site echo ' }' >> $etherpad_nginx_site - echo '' >> $etherpad_nginx_site - nginx_keybase $ETHERPAD_DOMAIN_NAME echo '}' >> $etherpad_nginx_site else echo -n '' > $etherpad_nginx_site @@ -600,8 +598,6 @@ function install_etherpad { echo ' proxy_set_header Host $host;' >> $etherpad_nginx_site echo ' proxy_buffering off;' >> $etherpad_nginx_site echo ' }' >> $etherpad_nginx_site - echo '' >> $etherpad_nginx_site - nginx_keybase $ETHERPAD_DOMAIN_NAME echo '}' >> $etherpad_nginx_site function_check create_site_certificate diff --git a/src/freedombone-app-friendica b/src/freedombone-app-friendica index 7d9b33bd..2789c581 100755 --- a/src/freedombone-app-friendica +++ b/src/freedombone-app-friendica @@ -427,8 +427,6 @@ function install_friendica { echo ' rewrite ^/(.*) /index.php?q=$uri&$args last;' >> /etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME echo ' }' >> /etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME echo '' >> /etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME - nginx_keybase ${FRIENDICA_DOMAIN_NAME} - echo '' >> /etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME echo ' # statically serve these file types when possible' >> /etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME echo ' # otherwise fall back to front controller' >> /etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME echo ' # allow browser to cache them' >> /etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME @@ -496,8 +494,6 @@ function install_friendica { echo ' rewrite ^/(.*) /index.php?q=$uri&$args last;' >> /etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME echo ' }' >> /etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME echo '' >> /etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME - nginx_keybase ${FRIENDICA_DOMAIN_NAME} - echo '' >> /etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME echo ' # statically serve these file types when possible' >> /etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME echo ' # otherwise fall back to front controller' >> /etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME echo ' # allow browser to cache them' >> /etc/nginx/sites-available/$FRIENDICA_DOMAIN_NAME diff --git a/src/freedombone-app-ghost b/src/freedombone-app-ghost index 1258925a..5dc44b27 100755 --- a/src/freedombone-app-ghost +++ b/src/freedombone-app-ghost @@ -471,8 +471,6 @@ function install_ghost { echo ' log_not_found 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} - nginx_keybase $GHOST_DOMAIN_NAME echo '}' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} echo '' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} else @@ -505,8 +503,6 @@ function install_ghost { echo ' log_not_found 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} - nginx_keybase ${GHOST_DOMAIN_NAME} echo '}' >> /etc/nginx/sites-available/${GHOST_DOMAIN_NAME} function_check create_site_certificate diff --git a/src/freedombone-app-gnusocial b/src/freedombone-app-gnusocial index 5a6ddc77..4a3d9ce8 100755 --- a/src/freedombone-app-gnusocial +++ b/src/freedombone-app-gnusocial @@ -738,8 +738,6 @@ function install_gnusocial_main { echo ' location ~ /\.(ht|git) {' >> $gnusocial_nginx_site echo ' deny all;' >> $gnusocial_nginx_site echo ' }' >> $gnusocial_nginx_site - echo '' >> $gnusocial_nginx_site - # DO NOT ENABLE KEYBASE. gnusocial really doesn't like having a .well-known directory echo '}' >> $gnusocial_nginx_site else echo -n '' > $gnusocial_nginx_site @@ -787,8 +785,6 @@ function install_gnusocial_main { echo ' location ~ /\.(ht|git) {' >> $gnusocial_nginx_site echo ' deny all;' >> $gnusocial_nginx_site echo ' }' >> $gnusocial_nginx_site - echo '' >> $gnusocial_nginx_site - # DO NOT ENABLE KEYBASE. gnusocial really doesn't like having a .well-known directory echo '}' >> $gnusocial_nginx_site function_check configure_php diff --git a/src/freedombone-app-gogs b/src/freedombone-app-gogs index bbfd65b2..cce16d2d 100755 --- a/src/freedombone-app-gogs +++ b/src/freedombone-app-gogs @@ -601,8 +601,6 @@ function install_gogs { echo ' log_not_found 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} - nginx_keybase ${GIT_DOMAIN_NAME} echo '}' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} echo '' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} else @@ -635,8 +633,6 @@ function install_gogs { echo ' log_not_found 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} - nginx_keybase ${GIT_DOMAIN_NAME} echo '}' >> /etc/nginx/sites-available/${GIT_DOMAIN_NAME} function_check configure_php diff --git a/src/freedombone-app-htmly b/src/freedombone-app-htmly index c41ee27f..755ebbf6 100755 --- a/src/freedombone-app-htmly +++ b/src/freedombone-app-htmly @@ -463,8 +463,6 @@ function install_htmly_website { echo ' rewrite ^/(.*) /index.php?q=$uri&$args last;' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo ' }' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo '' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME - nginx_keybase ${HTMLY_DOMAIN_NAME} - echo '' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo ' # statically serve these file types when possible' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo ' # otherwise fall back to front controller' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo ' # allow browser to cache them' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME @@ -541,8 +539,6 @@ function install_htmly_website_onion { echo ' rewrite ^/(.*) /index.php?q=$uri&$args last;' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo ' }' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo '' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME - nginx_keybase ${HTMLY_DOMAIN_NAME} - echo '' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo ' # statically serve these file types when possible' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo ' # otherwise fall back to front controller' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME echo ' # allow browser to cache them' >> /etc/nginx/sites-available/$HTMLY_DOMAIN_NAME diff --git a/src/freedombone-app-hubzilla b/src/freedombone-app-hubzilla index 72925f93..ed5a81b7 100755 --- a/src/freedombone-app-hubzilla +++ b/src/freedombone-app-hubzilla @@ -431,8 +431,6 @@ function install_hubzilla { echo ' rewrite ^/(.*) /index.php?q=$uri&$args last;' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME echo ' }' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME echo '' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME - nginx_keybase ${HUBZILLA_DOMAIN_NAME} - echo '' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME echo ' # statically serve these file types when possible' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME echo ' # otherwise fall back to front controller' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME echo ' # allow browser to cache them' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME @@ -500,8 +498,6 @@ function install_hubzilla { echo ' rewrite ^/(.*) /index.php?q=$uri&$args last;' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME echo ' }' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME echo '' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME - nginx_keybase ${HUBZILLA_DOMAIN_NAME} - echo '' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME echo ' # statically serve these file types when possible' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME echo ' # otherwise fall back to front controller' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME echo ' # allow browser to cache them' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME diff --git a/src/freedombone-app-kanboard b/src/freedombone-app-kanboard index 13c74bdf..64a0b791 100755 --- a/src/freedombone-app-kanboard +++ b/src/freedombone-app-kanboard @@ -504,8 +504,6 @@ function install_kanboard { echo ' location ~ /\.(ht|git) {' >> $kanboard_nginx_site echo ' deny all;' >> $kanboard_nginx_site echo ' }' >> $kanboard_nginx_site - echo '' >> $kanboard_nginx_site - # DO NOT ENABLE KEYBASE. kanboard really doesn't like having a .well-known directory echo '}' >> $kanboard_nginx_site else echo -n '' > $kanboard_nginx_site @@ -553,8 +551,6 @@ function install_kanboard { echo ' location ~ /\.(ht|git) {' >> $kanboard_nginx_site echo ' deny all;' >> $kanboard_nginx_site echo ' }' >> $kanboard_nginx_site - echo '' >> $kanboard_nginx_site - # DO NOT ENABLE KEYBASE. kanboard really doesn't like having a .well-known directory echo '}' >> $kanboard_nginx_site function_check configure_php diff --git a/src/freedombone-app-lychee b/src/freedombone-app-lychee index 87474bc6..6c970b98 100755 --- a/src/freedombone-app-lychee +++ b/src/freedombone-app-lychee @@ -260,8 +260,6 @@ function install_lychee_website { nginx_limits $LYCHEE_DOMAIN_NAME echo ' }' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo '' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME - nginx_keybase ${LYCHEE_DOMAIN_NAME} - echo '' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo ' # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo ' # or a unix socket' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo ' location ~* \.php$ {' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME @@ -323,8 +321,6 @@ function install_lychee_website_onion { nginx_limits $LYCHEE_DOMAIN_NAME echo ' }' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo '' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME - nginx_keybase ${LYCHEE_DOMAIN_NAME} - echo '' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo ' # block these file types' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo ' location ~* \.(tpl|md|tgz|log|out)$ {' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME echo ' deny all;' >> /etc/nginx/sites-available/$LYCHEE_DOMAIN_NAME diff --git a/src/freedombone-app-mailpile b/src/freedombone-app-mailpile index 548b528c..e7682e20 100755 --- a/src/freedombone-app-mailpile +++ b/src/freedombone-app-mailpile @@ -271,8 +271,6 @@ function install_mailpile { echo " proxy_pass http://localhost:${MAILPILE_PORT};" >> $mailpile_nginx_site echo ' proxy_redirect off;' >> $mailpile_nginx_site echo ' }' >> $mailpile_nginx_site - echo '' >> $mailpile_nginx_site - nginx_keybase ${MAILPILE_DOMAIN_NAME} echo '}' >> $mailpile_nginx_site echo '' >> $mailpile_nginx_site else @@ -303,8 +301,6 @@ function install_mailpile { echo " proxy_pass http://localhost:${MAILPILE_PORT};" >> $mailpile_nginx_site echo ' proxy_redirect off;' >> $mailpile_nginx_site echo ' }' >> $mailpile_nginx_site - echo '' >> $mailpile_nginx_site - nginx_keybase ${MAILPILE_DOMAIN_NAME} echo '}' >> $mailpile_nginx_site function_check create_site_certificate diff --git a/src/freedombone-app-mediagoblin b/src/freedombone-app-mediagoblin index 50524645..fa1bba52 100755 --- a/src/freedombone-app-mediagoblin +++ b/src/freedombone-app-mediagoblin @@ -381,7 +381,6 @@ function install_mediagoblin { nginx_disable_sniffing $MEDIAGOBLIN_DOMAIN_NAME function_check nginx_limits nginx_limits $MEDIAGOBLIN_DOMAIN_NAME 800m - nginx_keybase $MEDIAGOBLIN_DOMAIN_NAME echo '' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME echo ' client_header_timeout 10m;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME echo ' client_body_timeout 10m;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME diff --git a/src/freedombone-app-nextcloud b/src/freedombone-app-nextcloud index 3de70611..34ee4b7d 100755 --- a/src/freedombone-app-nextcloud +++ b/src/freedombone-app-nextcloud @@ -545,9 +545,6 @@ function install_nextcloud_main { echo ' }' >> $nextcloud_nginx_site echo '' >> $nextcloud_nginx_site echo ' location /.well-known/acme-challenge { }' >> $nextcloud_nginx_site - echo '' >> $nextcloud_nginx_site - - # DO NOT ENABLE KEYBASE. nextcloud really doesn't like having a .well-known directory echo '}' >> $nextcloud_nginx_site else echo -n '' > $nextcloud_nginx_site diff --git a/src/freedombone-app-pelican b/src/freedombone-app-pelican index d3b0f7c9..72363d24 100755 --- a/src/freedombone-app-pelican +++ b/src/freedombone-app-pelican @@ -93,8 +93,6 @@ function install_pelican_website { nginx_limits $PELICAN_DOMAIN_NAME echo ' }' >> /etc/nginx/sites-available/$PELICAN_DOMAIN_NAME echo '' >> /etc/nginx/sites-available/$PELICAN_DOMAIN_NAME - nginx_keybase ${PELICAN_DOMAIN_NAME} - echo '' >> /etc/nginx/sites-available/$PELICAN_DOMAIN_NAME echo ' # block these file types' >> /etc/nginx/sites-available/$PELICAN_DOMAIN_NAME echo ' location ~* \.(tpl|md|tgz|log|out)$ {' >> /etc/nginx/sites-available/$PELICAN_DOMAIN_NAME echo ' deny all;' >> /etc/nginx/sites-available/$PELICAN_DOMAIN_NAME @@ -136,8 +134,6 @@ function install_pelican_website_onion { nginx_limits $PELICAN_DOMAIN_NAME echo ' }' >> /etc/nginx/sites-available/$PELICAN_DOMAIN_NAME echo '' >> /etc/nginx/sites-available/$PELICAN_DOMAIN_NAME - nginx_keybase ${PELICAN_DOMAIN_NAME} - echo '' >> /etc/nginx/sites-available/$PELICAN_DOMAIN_NAME echo ' # block these file types' >> /etc/nginx/sites-available/$PELICAN_DOMAIN_NAME echo ' location ~* \.(tpl|md|tgz|log|out)$ {' >> /etc/nginx/sites-available/$PELICAN_DOMAIN_NAME echo ' deny all;' >> /etc/nginx/sites-available/$PELICAN_DOMAIN_NAME diff --git a/src/freedombone-app-postactiv b/src/freedombone-app-postactiv index 5eaefcee..327c3b68 100755 --- a/src/freedombone-app-postactiv +++ b/src/freedombone-app-postactiv @@ -753,8 +753,6 @@ function install_postactiv_main { echo ' location ~ /\.(ht|git) {' >> $postactiv_nginx_site echo ' deny all;' >> $postactiv_nginx_site echo ' }' >> $postactiv_nginx_site - echo '' >> $postactiv_nginx_site - # DO NOT ENABLE KEYBASE. postactiv really doesn't like having a .well-known directory echo '}' >> $postactiv_nginx_site else echo -n '' > $postactiv_nginx_site @@ -802,8 +800,6 @@ function install_postactiv_main { echo ' location ~ /\.(ht|git) {' >> $postactiv_nginx_site echo ' deny all;' >> $postactiv_nginx_site echo ' }' >> $postactiv_nginx_site - echo '' >> $postactiv_nginx_site - # DO NOT ENABLE KEYBASE. postactiv really doesn't like having a .well-known directory echo '}' >> $postactiv_nginx_site function_check configure_php diff --git a/src/freedombone-app-riot b/src/freedombone-app-riot index c0f0850f..2ed55775 100755 --- a/src/freedombone-app-riot +++ b/src/freedombone-app-riot @@ -297,8 +297,6 @@ function install_riot { function_check nginx_limits nginx_limits $RIOT_DOMAIN_NAME '15m' echo ' }' >> $riot_nginx_site - echo '' >> $riot_nginx_site - nginx_keybase ${RIOT_DOMAIN_NAME} echo '}' >> $riot_nginx_site echo '' >> $riot_nginx_site else @@ -324,8 +322,6 @@ function install_riot { function_check nginx_limits nginx_limits $RIOT_DOMAIN_NAME '15m' echo ' }' >> $riot_nginx_site - echo '' >> $riot_nginx_site - nginx_keybase ${RIOT_DOMAIN_NAME} echo '}' >> $riot_nginx_site sed '/Content-Security-Policy/d' $riot_nginx_site diff --git a/src/freedombone-app-wekan b/src/freedombone-app-wekan index 97a86cbf..48672a3f 100755 --- a/src/freedombone-app-wekan +++ b/src/freedombone-app-wekan @@ -313,8 +313,6 @@ function install_wekan_main { echo ' log_not_found off;' >> /etc/nginx/sites-available/${WEKAN_DOMAIN_NAME} echo ' access_log /dev/null;' >> /etc/nginx/sites-available/${WEKAN_DOMAIN_NAME} echo ' }' >> /etc/nginx/sites-available/${WEKAN_DOMAIN_NAME} - echo '' >> /etc/nginx/sites-available/${WEKAN_DOMAIN_NAME} - nginx_keybase ${WEKAN_DOMAIN_NAME} echo '}' >> /etc/nginx/sites-available/${WEKAN_DOMAIN_NAME} echo '' >> /etc/nginx/sites-available/${WEKAN_DOMAIN_NAME} else @@ -347,8 +345,6 @@ function install_wekan_main { echo ' log_not_found off;' >> /etc/nginx/sites-available/${WEKAN_DOMAIN_NAME} echo ' access_log /dev/null;' >> /etc/nginx/sites-available/${WEKAN_DOMAIN_NAME} echo ' }' >> /etc/nginx/sites-available/${WEKAN_DOMAIN_NAME} - echo '' >> /etc/nginx/sites-available/${WEKAN_DOMAIN_NAME} - nginx_keybase ${WEKAN_DOMAIN_NAME} echo '}' >> /etc/nginx/sites-available/${WEKAN_DOMAIN_NAME} function_check nginx_ensite diff --git a/src/freedombone-utils-web b/src/freedombone-utils-web index 3095a30b..c47ff87f 100755 --- a/src/freedombone-utils-web +++ b/src/freedombone-utils-web @@ -166,29 +166,6 @@ function nginx_ssl { #nginx_stapling $1 } -function nginx_keybase { - # creates files suitable for keybase.io verification - domain_name=$1 - filename=/etc/nginx/sites-available/$domain_name - - echo '' >> $filename - echo " # make sure webfinger and other well known services aren't blocked" >> $filename - echo ' # by denying dot files and rewrite request to the front controller' >> $filename - echo ' location ^~ /.well-known/ {' >> $filename - echo ' allow all;' >> $filename - echo ' }' >> $filename - - if [ ! -d /var/www/${domain_name}/htdocs/.well-known ]; then - mkdir -p /var/www/${domain_name}/htdocs/.well-known - fi - if [ ! -f /var/www/${domain_name}/htdocs/keybase.txt ]; then - touch /var/www/${domain_name}/htdocs/keybase.txt - fi - if [ ! -f /var/www/${domain_name}/htdocs/.well-known/keybase.txt ]; then - touch /var/www/${domain_name}/htdocs/.well-known/keybase.txt - fi -} - # check an individual domain name function test_domain_name { if [ $1 ]; then