feat: initial commit for HookPilot

This commit is contained in:
吴璨
2026-09-27 20:09:10 +08:00
commit e998d4defc
73 changed files with 10782 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
[Unit]
Description=HookPilot Webhook 脚本管理平台
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=hookpilot
Group=hookpilot
WorkingDirectory=/opt/hookpilot
EnvironmentFile=-/etc/hookpilot/hookpilot.env
ExecStart=/usr/bin/node /opt/hookpilot/server/dist/index.js
Restart=on-failure
RestartSec=3
# 停止时只向主进程发送 SIGTERM,由服务终止运行中的任务并标记为“中断”;
# 超过 TimeoutStopSec 仍未退出时,systemd 再清理整个 cgroup。
KillMode=mixed
TimeoutStopSec=15
# 脚本需要 sudo 提权时不能启用 NoNewPrivileges;如确定不需要提权,可取消下面的注释加固
# NoNewPrivileges=true
# ProtectSystem=full
[Install]
WantedBy=multi-user.target