light: fix tls cert expiring and not renewing
Some checks failed
/ Ansible Lint (push) Failing after 39s
Some checks failed
/ Ansible Lint (push) Failing after 39s
This commit is contained in:
parent
5693989c38
commit
6a92aa68c1
4 changed files with 34 additions and 20 deletions
|
|
@ -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/;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue