feat: 开源母线电容计算器并接入独立自动部署
整理 Buck 与 PMSM 完整源码、离线构建、校核测试和使用说明,采用 MIT 许可。 增加页首开源链接,支持推送 main 后自动测试、构建并发布到原计算器网址。
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
[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
|
||||
Reference in New Issue
Block a user