Update nginx.conf for Docker containers
This commit is contained in:
parent
71b0792edd
commit
1969085346
@ -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;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user