Files
pit-router/pit-router-webhook.service

23 lines
553 B
SYSTEMD
Raw Normal View History

[Unit]
Description=PIT Router Webhook Server - 自动部署服务
After=network.target docker.service
Requires=docker.service
[Service]
Type=simple
User=root
WorkingDirectory=/www/wwwroot/pit-router
Environment=WEBHOOK_SECRET=pit-router-webhook-secret-2026
ExecStart=/usr/bin/python3 /www/wwwroot/pit-router/webhook-server.py
Restart=always
RestartSec=5
StandardOutput=append:/var/log/pit-router-webhook.log
StandardError=append:/var/log/pit-router-webhook.log
# 安全配置
NoNewPrivileges=true
PrivateTmp=true
[Install]
WantedBy=multi-user.target