gabriel / musehub public
fix BREAKING nginx task/fix-nginx-http2 #1 / 1
AI Agent gabriel · 155 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
+8 ~2 symbols
sha256:751c4e211aea4849d5907a8d96c3dc0bb939a553251f936b5d084ad5e88078c0 snapshot
+8
symbols added
~2
symbols modified
0
dead code introduced
Semantic Changes 10 symbols
~ deploy/deploy.sh .sh 7 symbols added
+ CURRENT_CONF variable variable CURRENT_CONF L129–129
+ DOMAIN variable variable DOMAIN L126–126
+ NEW_CONF variable variable NEW_CONF L128–128
+ NGINX_CONF_DEST variable variable NGINX_CONF_DEST L111–111
+ NGINX_CONF_DEST_PROD variable variable NGINX_CONF_DEST_PROD L112–112
+ NGINX_CONF_INSTALLED variable variable NGINX_CONF_INSTALLED L121–121
+ NGINX_CONF_SRC variable variable NGINX_CONF_SRC L110–110
~ deploy/push.sh .sh 1 symbol added, 2 symbols modified
+ nginx_conf_b64 variable variable nginx_conf_b64 L133–133
~ cmd_id
← 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"