Fix to exclude acme-challenge from HTTPS redirect

This commit is contained in:
Matthew Wild 2021-01-30 10:48:12 +00:00
parent d7a143ce5c
commit a51e613627
1 changed files with 7 additions and 1 deletions

View File

@ -6,5 +6,11 @@ server {
server_name groups.${SNIKKET_DOMAIN};
server_name share.${SNIKKET_DOMAIN};
return 301 https://$host$request_uri;
location /.well-known/acme-challenge {
alias /var/www/html/.well-known/acme-challenge;
}
location / {
return 301 https://$host$request_uri;
}
}