light: fix tls cert expiring and not renewing
Some checks failed
/ Ansible Lint (push) Failing after 39s

This commit is contained in:
chris 2026-01-25 22:36:30 +01:00
commit 6a92aa68c1
Signed by: c6ristian
SSH key fingerprint: SHA256:B3m+yzpaxGXSEcDBpPHfvza/DNC0wuX+CKMeGq8wgak
4 changed files with 34 additions and 20 deletions

View file

@ -1,14 +1,12 @@
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;
}
location /.well-known/acme-challenge/ {
proxy_pass http://127.0.0.1:31820/.well-known/acme-challenge/;
}
}