deploy: move collector and db to cloud

This commit is contained in:
kris
2026-03-23 18:32:18 +08:00
parent 17b419f8ef
commit f27a12ca3d
5 changed files with 66 additions and 22 deletions

View File

@@ -0,0 +1,26 @@
[Unit]
Description=StoryForge Collector Service
After=network.target
[Service]
User=ubuntu
Group=ubuntu
WorkingDirectory=/home/ubuntu/storyforge/collector-service
Environment=DATA_DIR=/home/ubuntu/storyforge/data/collector
Environment=DATABASE_PATH=/home/ubuntu/storyforge/data/collector/storyforge.db
Environment=JOBS_DIR=/home/ubuntu/storyforge/data/collector/jobs
Environment=DOWNLOADS_DIR=/home/ubuntu/storyforge/data/collector/downloads
Environment=MODELS_DIR=/home/ubuntu/storyforge/data/collector/models
Environment=DEFAULT_EXTERNAL_BASE_URL=https://storyforge.hyzq.net
Environment=LOCAL_OPENAI_BASE_URL=http://127.0.0.1:18317/v1
Environment=ASR_HTTP_BASE_URL=http://127.0.0.1:18088
Environment=N8N_BASE_URL=http://127.0.0.1:15670
Environment=HUOBAO_BASE_URL=http://127.0.0.1:15678
Environment=CUTVIDEO_BASE_URL=http://127.0.0.1:17860
Environment=LIVE_RECORDER_BASE_URL=http://127.0.0.1:19106
ExecStart=/home/ubuntu/storyforge/collector-service/.venv/bin/python -m uvicorn app.main:app --host 127.0.0.1 --port 8081
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target