Compare commits
3 Commits
4ea5f2c6be
...
b1c93d6089
Author | SHA1 | Date |
---|---|---|
histausse | b1c93d6089 | 2 years ago |
histausse | ceb8391c06 | 2 years ago |
histausse | 888b4c0adb | 2 years ago |
@ -0,0 +1,17 @@
|
|||||||
|
i{{ 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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue