ansible-infra/playbooks/files/z9/configs/light/nginx/http_handler.conf
June 70a27ec79c
light: use new combined cert and make server reachable over v6
The server being reachable over v6 is needed for the new method of
getting the cert directly via http challenge over v6.
2024-07-30 00:14:09 +02:00

15 lines
280 B
Plaintext

server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
location /.well-known/acme-challenge/ {
autoindex on;
root /webroot-for-acme-challenge;
}
location / {
return 301 https://$host$request_uri;
}
}