Merge branch 'master' into knots

This commit is contained in:
Léo Haf 2025-05-08 14:58:46 -05:00 committed by GitHub
commit b2b59ee607
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -514,7 +514,21 @@ server {
listen [::]:80 {{ $default_server }};
{{ end }}
access_log /var/log/nginx/access.log vhost;
return 301 https://$host$request_uri;
# Allow acme challenge requests without redirect
location ^~ /.well-known/acme-challenge/ {
auth_basic off;
auth_request off;
allow all;
root /usr/share/nginx/html;
try_files $uri =404;
break;
}
# Redirect all other requests to HTTPS
location / {
return 301 https://$host$request_uri;
}
}
{{ end }}