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