mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
a32b79c885
- 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>
12 lines
234 B
Bash
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;'
|