nginx: Use alias for certbot host

This commit is contained in:
Timo Makinen 2020-08-27 12:00:28 +03:00
parent ee23e2120b
commit e672015a1f

View file

@ -37,7 +37,7 @@ server {
listen [::]:80;
server_name {{ site }};
location /.well-known/acme-challenge/ {
proxy_pass https://noc02.home.foo.sh/.well-known/acme-challenge/;
proxy_pass https://certbot.home.foo.sh/.well-known/acme-challenge/;
proxy_ssl_certificate {{ tls_certs }}/{{ inventory_hostname }}.crt;
proxy_ssl_certificate_key {{ tls_private }}/{{ inventory_hostname }}.key;
}