nginx/templates/http_proxy_acme.j2

18 lines
360 B
Text
Raw Normal View History

2022-08-07 18:43:35 +02:00
{{ ansible_managed | comment }}
server {
listen 80;
listen [::]:80;
server_name {{ item.value.sni_server_name }};
location /.well-known/acme-challenge {
proxy_pass http://{{ item.value.to }}:80;
proxy_set_header Host $host;
}
# Redirect to https
location / {
return 302 https://$host$request_uri;
}
}