gabriel / musehub public
fix BREAKING nginx task/fix-nginx-http2 #1 / 1
AI Agent gabriel · 57 days ago · Apr 23, 2026 · Diff

fix(nginx): enable HTTP/2, fix push/stream location, disable request buffering

- listen 443 ssl http2 — enables HTTP/2 negotiation via ALPN; without this nginx only accepts HTTP/1.1 even over TLS, causing bidirectional streaming to fail (muse push uses httpx with http2=True) - push location pattern now matches /push/stream in addition to /push and /push/objects — previously /push/stream fell through to the 60s default - proxy_request_buffering off + proxy_buffering off on push location — nginx streams the request body to uvicorn immediately instead of buffering the entire upload first, enabling true bidirectional streaming - deploy.sh step 0: syncs nginx-cf.conf to instance on every deploy and reloads nginx if config changed (safe no-op when unchanged) - push.sh: also base64-syncs nginx-cf.conf to instance alongside deploy.sh

sha256:edb21864b55adab9d6903aa1f5c5cb74c0e989ff8b62feb00c92299314b0e58c sha
sha256:751c4e211aea4849d5907a8d96c3dc0bb939a553251f936b5d084ad5e88078c0 snapshot
← Older Oldest on task/fix-nginx-http2
All commits
Newer → Latest on task/fix-nginx-http2

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:edb21864b55adab9d6903aa1f5c5cb74c0e989ff8b62feb00c92299314b0e58c --body "your comment"