forked from unitoo/configurations
Merge pull request 'Add certbot service/timer + synapse grafan dashboard' (#10) from yamabiiko/dot-files:master into master
Reviewed-on: https://gitea.it/Unitoo/dot-files/pulls/10
This commit is contained in:
commit
e3b23120ca
4 changed files with 10913 additions and 0 deletions
6
etc/systemd/system/certbot-renewal.service
Normal file
6
etc/systemd/system/certbot-renewal.service
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Automatically renews SSL certificates obtained with certbot
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/certbot renew -q --post-hook /usr/local/bin/certbot-restart-nginx
|
10
etc/systemd/system/certbot-renewal.timer
Normal file
10
etc/systemd/system/certbot-renewal.timer
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=This is the timer schedule Automatic renewals of SSL certificates obtained with certbot
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=daily
|
||||||
|
RandomizedDelaySec=6hours
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
10892
grafana/dashboards/synapse.json
Normal file
10892
grafana/dashboards/synapse.json
Normal file
File diff suppressed because it is too large
Load diff
5
usr/local/bin/certbot-restart-nginx
Normal file
5
usr/local/bin/certbot-restart-nginx
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
|
||||||
|
|
||||||
|
nginx -tq && systemctl restart nginx
|
Loading…
Reference in a new issue