From b860f9699c30081ae8ca83dde8da903ab6c84f31 Mon Sep 17 00:00:00 2001 From: Parker Date: Mon, 2 Dec 2024 23:47:11 -0600 Subject: [PATCH] Update locations --- nginx.conf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index 725c6b9..cd8f14b 100644 --- a/nginx.conf +++ b/nginx.conf @@ -18,8 +18,12 @@ server { real_ip_header X-Forwarded-For; real_ip_recursive on; } - # Proxy requests to docs to FastAPI + # Proxy docs to FastAPI location /docs/ { - proxy_pass http://localhost:5252; + proxy_pass http://localhost:5252/docs; + } + # Proxy /openapi.json to FastAPI + location /openapi.json { + proxy_pass http://localhost:5252/openapi.json; } } \ No newline at end of file