deploy: move collector and db to cloud
This commit is contained in:
26
deploy/storyforge-collector.service.example
Normal file
26
deploy/storyforge-collector.service.example
Normal 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
|
||||
Reference in New Issue
Block a user