mirror of
https://github.com/kennethreitz/kennethreitz.org.git
synced 2026-06-05 22:50:17 +00:00
7bbd58e85a
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>
7 lines
200 B
Bash
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;'
|