2024-05-28 10:32:28 +00:00
|
|
|
# handle .well-known and HTTPS redirect for all domains
|
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
|
|
listen [::]:80 default_server;
|
2024-11-20 14:47:18 +00:00
|
|
|
location /.well-known/acme-challenge/ {
|
|
|
|
alias /srv/http/.well-known/acme-challenge/;
|
2024-05-28 10:32:28 +00:00
|
|
|
}
|
|
|
|
location / {
|
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
}
|
|
|
|
}
|