Adds firefly and homebox, replaces nginx-proxy/acme-companion with acme
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Backups the firefly database
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/opt/bin/backup-postgres
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Timer for the backup-database service
|
||||
|
||||
[Timer]
|
||||
OnCalendar=12:00:00
|
||||
Persistent=true
|
||||
Unit=backup-database.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Backups the homebox database
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/opt/bin/backup-postgres
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Timer for the backup-database service
|
||||
|
||||
[Timer]
|
||||
OnCalendar=12:00:00
|
||||
Persistent=true
|
||||
Unit=backup-database.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Creates a certificate
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/podman exec -it acme --issue --server https://acme-v02.api.letsencrypt.org/directory --webroot /usr/share/nginx/html \
|
||||
--cert-file /etc/nginx/certs/%I/cert.pem --key-file /etc/nginx/certs/%I/key.pem \
|
||||
--ca-file /etc/nginx/certs/%I/chain.pem --fullchain-file /etc/nginx/certs/%I/fullchain.pem \
|
||||
--domain %I
|
||||
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Removes a certificate
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/podman exec -it acme --remove --ecc --domain %I
|
||||
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Updates the account
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/podman exec -it acme --update-account --server https://acme-v02.api.letsencrypt.org/directory --accountemail guillaume.tache@hotmail.com
|
||||
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Updates the certificates
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/podman exec -it acme --cron
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Timer for the update-certificates service
|
||||
|
||||
[Timer]
|
||||
OnCalendar=01:00:00
|
||||
Persistent=true
|
||||
Unit=update-certificates.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user