mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-24 06:34:46 +08:00
feat: add nginx reversed proxy (#15)
* docs: add nginx reverse proxy documentation Add comprehensive nginx configuration documentation to README including: - Production deployment instructions with step-by-step setup - Architecture diagram showing traffic routing between services - Nginx features: unified entry point, CORS handling, SSE support - Updated project structure with nginx.conf and service ports Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * feat: implement nginx --------- Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,12 +5,22 @@ dev:
|
||||
uv run langgraph dev --no-browser --allow-blocking --no-reload
|
||||
|
||||
gateway:
|
||||
uv run uvicorn src.gateway.app:app --host 0.0.0.0 --port 8000
|
||||
uv run uvicorn src.gateway.app:app --host 0.0.0.0 --port 8001
|
||||
|
||||
nginx:
|
||||
nginx -c $(PWD)/../nginx.conf -p $(PWD)/..
|
||||
|
||||
serve:
|
||||
@echo "Stopping existing services if any..."
|
||||
@-pkill -f "langgraph dev" 2>/dev/null || true
|
||||
@-pkill -f "uvicorn src.gateway.app:app" 2>/dev/null || true
|
||||
@-nginx -c $(PWD)/../nginx.conf -p $(PWD)/.. -s quit 2>/dev/null || true
|
||||
@sleep 1
|
||||
@echo "Starting services..."
|
||||
@trap 'kill 0' EXIT; \
|
||||
uv run langgraph dev --no-browser --allow-blocking --no-reload & \
|
||||
sleep 3 && uv run uvicorn src.gateway.app:app --host 0.0.0.0 --port 8000 & \
|
||||
sleep 3 && uv run uvicorn src.gateway.app:app --host 0.0.0.0 --port 8001 & \
|
||||
sleep 1 && nginx -c $(PWD)/../nginx.conf -p $(PWD)/.. & \
|
||||
wait
|
||||
|
||||
lint:
|
||||
|
||||
Reference in New Issue
Block a user