This commit is contained in:
Your Name
2026-07-23 17:56:25 +08:00
parent a05dae8412
commit 4970d8f8d3
4262 changed files with 735221 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
# systemd 服务单元示例
# 安装: sudo cp deploy/kefu.service /etc/systemd/system/
# sudo systemctl daemon-reload
# sudo systemctl enable --now kefu
[Unit]
Description=Douyin Kefu Auto-Reply System
After=network.target
[Service]
Type=simple
User=www
Group=www
WorkingDirectory=/www/wwwroot/douyin/backend
Environment=KEFU_HOST=0.0.0.0
Environment=KEFU_PORT=8000
Environment=KEFU_SERVE_WEB=true
Environment=PLAYWRIGHT_BROWSERS_PATH=/www/wwwroot/douyin/playwright-browsers
EnvironmentFile=-/www/wwwroot/douyin/.env
ExecStart=/www/wwwroot/douyin/backend/.venv/bin/python -m uvicorn main:app --host 0.0.0.0 --port 8000
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target