service-nginx: move ACME hostname to variable and set resolver because nginx will fail if host is not (yet) reachable during startup
This commit is contained in:
parent
d4a4f576c9
commit
30b5a5e4eb
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
location ^~ /.well-known/acme-challenge/ {
|
location ^~ /.well-known/acme-challenge/ {
|
||||||
proxy_pass https://{{ acme_server }}.{{ http_domain_internal }}:443;
|
resolver 127.0.0.1;
|
||||||
|
set $acme_host {{ acme_server }}.{{ http_domain_internal }};
|
||||||
|
proxy_pass https://$acme_host:443;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = /.well-known/acme-challenge/ {
|
location = /.well-known/acme-challenge/ {
|
||||||
|
|
Loading…
Reference in a new issue