nginx: only handle acme-challenge well-known directory in default site

Mainly so that other directories can be reverse-proxied.
This commit is contained in:
Timotej Lazar 2024-11-20 15:47:18 +01:00
parent b7fd838ca9
commit 2d776d3246

View file

@ -2,8 +2,8 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
location /.well-known/ {
alias /srv/http/.well-known/;
location /.well-known/acme-challenge/ {
alias /srv/http/.well-known/acme-challenge/;
}
location / {
return 301 https://$host$request_uri;