holy后端

This commit is contained in:
2026-08-04 14:02:45 +08:00
commit 175b38138e
25 changed files with 3752 additions and 0 deletions

18
deploy/holy-crab.service Normal file
View File

@@ -0,0 +1,18 @@
[Unit]
Description=Holy Crab Monitoring Platform Backend
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=ubuntu
Group=ubuntu
WorkingDirectory=/opt/holy-crab/backend
EnvironmentFile=/etc/holy-crab.env
ExecStart=/opt/holy-crab/backend/.venv/bin/gunicorn --bind 127.0.0.1:18000 --workers 1 --threads 8 --timeout 180 --access-logfile - --error-logfile - app:app
Restart=always
RestartSec=3
TimeoutStopSec=30
[Install]
WantedBy=multi-user.target