Files
caddy-conf/scripts/webhook/caddy-deploy-webhook.service
Claudio c2a1ab464b Webhook service: allow writes to /etc/caddy
git pull inside the deploy needs to update .git/FETCH_HEAD, but
ProtectSystem=full makes /etc read-only. ReadWritePaths=/etc/caddy
opens just the repo directory.
2026-04-20 17:11:39 +02:00

19 lines
347 B
Desktop File

[Unit]
Description=Caddy-conf deploy webhook
After=network.target caddy.service
[Service]
Type=simple
ExecStart=/usr/bin/python3 /etc/caddy/scripts/webhook/webhook.py
Restart=on-failure
RestartSec=2
User=root
ProtectSystem=full
ReadWritePaths=/etc/caddy
ProtectHome=true
NoNewPrivileges=true
PrivateTmp=true
[Install]
WantedBy=multi-user.target