Files
bus-capacitor-calculator/deploy/bus-capacitor-webhook.service
T
gaochengyu 73ab36f7ff feat: 开源母线电容计算器并接入独立自动部署
整理 Buck 与 PMSM 完整源码、离线构建、校核测试和使用说明,采用 MIT 许可。
增加页首开源链接,支持推送 main 后自动测试、构建并发布到原计算器网址。
2026-11-27 04:38:28 +08:00

24 lines
637 B
Desktop File

[Unit]
Description=Signed Gitea webhook for the bus capacitor calculator
After=network.target
[Service]
Type=simple
User=codex
Group=codex
UMask=0077
WorkingDirectory=/srv/bus-capacitor/automation
ExecStart=/usr/bin/python3 -B /srv/bus-capacitor/automation/webhook.py /srv/bus-capacitor/automation/config.json
Restart=on-failure
RestartSec=3
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=read-only
ReadWritePaths=/srv/bus-capacitor/automation/state
InaccessiblePaths=-/run/docker.sock -/var/run/docker.sock -/home/codex/.ssh
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
[Install]
WantedBy=multi-user.target