Files
kennethreitz.org/start.sh
T
kennethreitz 7bbd58e85a Add nginx in front of Granian for static file serving and request buffering
Nginx serves photography images and static assets directly from disk,
proxies everything else to Granian with response caching. Adds gzip
compression and request buffering.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 18:35:59 -04:00

7 lines
200 B
Bash

#!/bin/sh
# Start Granian on port 8001 (behind nginx)
granian --interface asgi --host 127.0.0.1 --port 8001 --workers 4 engine:api &
# Start nginx on port 8000 (public-facing)
nginx -g 'daemon off;'