Filename
This commit is contained in:
parent
850b9c1f4d
commit
3bd64b0fb9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue