This commit is contained in:
2022-05-26 22:26:35 -04:00
parent 209ff57a4a
commit 2fc770ab0c
20 changed files with 221 additions and 111 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,10 @@
server {
listen 80;
server_name {{ item.domain }};
return 301 https://{{ item.domain }}$request_uri;
}
server {
listen 443 ssl;
server_name {{ item.domain }};