feat: 添加登录页面,支持外网访问 Web UI
- 新增 /web/login 登录页面 - 修改路由使用 optional JWT 认证 - 前端自动检测 token 并跳转登录 - 更新 .gitignore 排除 venv
This commit is contained in:
22
pit-router-webhook.service
Normal file
22
pit-router-webhook.service
Normal file
@@ -0,0 +1,22 @@
|
||||
[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
|
||||
Reference in New Issue
Block a user