Files
kjvstudy.org/start.sh
T
kennethreitz a32b79c885 Add nginx for HTTP request buffering
- nginx handles slow client connections, freeing uvicorn workers
- Request buffering absorbs slow uploads
- Response buffering for efficient delivery
- Static files served directly by nginx with 1y cache
- Gzip compression enabled
- Keepalive connections to uvicorn

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 02:00:00 -05:00

12 lines
234 B
Bash

#!/bin/sh
set -e
# Start uvicorn in background on port 8001
uvicorn kjvstudy_org.server:app --host 127.0.0.1 --port 8001 &
# Wait for uvicorn to be ready
sleep 2
# Start nginx in foreground on port 8000
exec nginx -g 'daemon off;'