aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-12-02 23:47:11 -0600
committerParker <contact@pkrm.dev>2024-12-02 23:47:11 -0600
commitb860f9699c30081ae8ca83dde8da903ab6c84f31 (patch)
tree1e8208c5b9a7224f7c0de721d680e79f2a28caa9
parent2eec9e6ce9aaa48c1008fabbfdfc750421c388ee (diff)
Update locations
-rw-r--r--nginx.conf8
1 files 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