Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions shelly-manager/rootfs/etc/services.d/api/run
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ LOG_LEVEL="${LOG_LEVEL:-info}"

API_PORT="${API_PORT:-8000}"

exec s6-setuidgid abc /app/.venv/bin/uvicorn api.main:app \
WORKERS="${API_WORKERS:-4}"
exec s6-setuidgid abc /app/.venv/bin/uvicorn api.main:app_factory \
--factory \
--host 0.0.0.0 \
--port "${API_PORT}" \
--log-level "${LOG_LEVEL}"
--log-level "${LOG_LEVEL}" \
--workers "${WORKERS}"