kvmd-certbot

This commit is contained in:
Maxim Devaev
2022-06-24 16:19:28 +03:00
parent 9f4c241204
commit 9202cf1d44
8 changed files with 153 additions and 9 deletions

View File

@@ -0,0 +1,8 @@
[Unit]
Description=PiKVM - Certbot-Renew for KVMD-Nginx
[Service]
Type=oneshot
ExecStart=/usr/bin/kvmd-certbot renew --quiet
# Should we?..
# PrivateTmp=true

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Run KVMD-Certbot twice daily
[Timer]
OnCalendar=*-*-* 00/12:00:00
RandomizedDelaySec=12h
Persistent=true
[Install]
WantedBy=timers.target

View File

@@ -4,6 +4,7 @@ g kvmd-ipmi - -
g kvmd-vnc - -
g kvmd-nginx - -
g kvmd-janus - -
g kvmd-certbot - -
u kvmd - "PiKVM - The main daemon" -
u kvmd-pst - "PiKVM - Persistent storage" -
@@ -11,6 +12,7 @@ u kvmd-ipmi - "PiKVM - IPMI to KVMD proxy" -
u kvmd-vnc - "PiKVM - VNC to KVMD/Streamer proxy" -
u kvmd-nginx - "PiKVM - HTTP entrypoint" -
u kvmd-janus - "PiKVM - Janus WebRTC Gateway" -
u kvmd-certbot - "PiKVM - Certbot-Renew for KVMD-Nginx"
m kvmd video
m kvmd gpio
@@ -26,3 +28,6 @@ m kvmd-janus audio
m kvmd-nginx kvmd
m kvmd-nginx kvmd-janus
m kvmd-nginx kvmd-certbot
m kvmd-certbot kvmd-pst

View File

@@ -1 +1,7 @@
D /run/kvmd 0775 kvmd kvmd -
D /run/kvmd 0775 kvmd kvmd -
D /run/kvmd-certbot 0755 root root -
D /run/kvmd-certbot/webroot 0755 kvmd-certbot kvmd-certbot -
D /tmp/kvmd 0775 kvmd kvmd -
D /tmp/kvmd-nginx 0700 kvmd-nginx root -
D /tmp/kvmd-certbot 0755 kvmd-certbot kvmd-certbot -