This commit is contained in:
Bob Mottram 2016-11-11 18:18:50 +00:00
parent 850b9c1f4d
commit 3bd64b0fb9
1 changed files with 6 additions and 6 deletions

View File

@ -143,12 +143,12 @@ function nginx_keybase {
domain_name=$1
filename=/etc/nginx/sites-available/$domain_name
echo '' >> $domain_name
echo " # make sure webfinger and other well known services aren't blocked" >> $domain_name
echo ' # by denying dot files and rewrite request to the front controller' >> $domain_name
echo ' location ^~ /.well-known/ {' >> $domain_name
echo ' allow all;' >> $domain_name
echo ' }' >> $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