aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-11-15 16:49:30 -0600
committerParker <contact@pkrm.dev>2024-11-15 16:49:30 -0600
commit19690853467d9a7bdd8e8337f5a7b6287ae537c8 (patch)
tree3f076a27f4a528cb9c118c05e22e5986d9ff48a1
parent71b0792edd2e9b36416e0da5b904045763dde4b6 (diff)
Update nginx.conf for Docker containers
-rw-r--r--nginx.conf9
1 files changed, 5 insertions, 4 deletions
diff --git a/nginx.conf b/nginx.conf
index c07ddcb..2eee1b4 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -1,5 +1,5 @@
server {
- listen 5000;
+ listen 5252;
# Serve React static files
location / {
@@ -10,9 +10,6 @@ server {
# Proxy API requests to FastAPI
location /api/ {
proxy_pass http://localhost:5252;
- set_real_ip_from 0.0.0.0/0;
- real_ip_header X-Forwarded-For;
- real_ip_recursive on;
}
# Proxy short link requests to FastAPI
location /c/ {
@@ -21,4 +18,8 @@ server {
real_ip_header X-Forwarded-For;
real_ip_recursive on;
}
+ # Proxy requests to docs to FastAPI
+ location /docs/ {
+ proxy_pass http://localhost:5252;
+ }
} \ No newline at end of file