Compare commits
3 commits
21df85e97a
...
6e5de53937
Author | SHA1 | Date | |
---|---|---|---|
Timotej Lazar | 6e5de53937 | ||
Timotej Lazar | ae49801579 | ||
Timotej Lazar | 82ca6a94c1 |
|
@ -1,10 +1,3 @@
|
|||
a.interwiki,
|
||||
a.urlextern,
|
||||
a.windows {
|
||||
padding-left: 0 !important;
|
||||
background: none !important;
|
||||
}
|
||||
|
||||
body {
|
||||
font: unset;
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
server_name {{ dns_name }};
|
||||
|
||||
http2 on;
|
||||
ssl_certificate /etc/letsencrypt/live/{{ dns_name }}/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/{{ dns_name }}/privkey.pem;
|
||||
|
||||
|
|
3
roles/nginx/files/reload-nginx.sh
Normal file
3
roles/nginx/files/reload-nginx.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
service nginx reload
|
|
@ -29,6 +29,12 @@
|
|||
cmd: certbot certonly --non-interactive --agree-tos --register-unsafely-without-email --webroot --webroot-path /srv/http -d {{ dns_name }}
|
||||
creates: '/etc/letsencrypt/renewal/{{ dns_name }}.conf'
|
||||
|
||||
- name: Install certificate renewal deployment hook
|
||||
copy:
|
||||
dest: /etc/letsencrypt/renewal-hooks/deploy/
|
||||
src: reload-nginx.sh
|
||||
mode: 0755
|
||||
|
||||
- name: Enable certbot renewal
|
||||
cron:
|
||||
name: "certbot renew"
|
||||
|
|
Loading…
Reference in a new issue