- 新增 /web/login 登录页面 - 修改路由使用 optional JWT 认证 - 前端自动检测 token 并跳转登录 - 更新 .gitignore 排除 venv
23 lines
553 B
Desktop File
23 lines
553 B
Desktop File
[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
|