aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-02-18 13:18:26 -0800
committerPinapelz <yukais@pinapelz.com>2026-02-18 13:18:26 -0800
commit18dc91fe547b47913333266c891ae0b5ed70fbfc (patch)
tree1af4d2b597c1c96959d7776e8d04575f2b30f5fe
parent4311b4bc2cc5191039e5498a7a0df3aa103fa043 (diff)
update gunicorn run command for multiple subscribers
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 4ace374..bfc95f3 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,8 @@ Takes a YouTube playlist and converts it to an audio stream, similar to internet
First set the environment variables as per `.env.template`, then just run it with gunicorn or something else (gunicorn comes bundled as part of the deps here)
```bash
uv sync
-uv run gunicorn yt_radio:app --bind 0.0.0.0:8000 --worker-class gevent --workers 2 --timeout 0 --keep-alive 5
+uv run gunicorn yt_radio:app --bind 0.0.0.0:8000 -k gthread --threads 50 --workers 1 --timeout 0 --keep-alive 5
```
> Note that `--timeout 0` is a strict requirement if using `/stream` endpoint due to Gunicorn's default timeout policy
+> Similarly, you should use a single persistent worker if you want everyone listening to the same stuff on `/stream`
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage