This commit is contained in:
2022-05-24 21:15:10 -04:00
parent 209ff57a4a
commit e1c8dc55d3
11 changed files with 103 additions and 92 deletions

View File

@@ -62,6 +62,7 @@
file:
path: /etc/letsencrypt/renewal-hooks/post
state: directory
when: proxy.production is defined and proxy.production
- name: Install nginx post renewal hook
copy:

View File

@@ -1,3 +1,11 @@
{% if item.https is not defined or item.https %}
server {
listen 80;
server_name {{ item.domain }};
return 301 https://{{ item.domain }}$request_uri;
}
{% endif %}
server {
listen 443 ssl;
server_name {{ item.domain }};