mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
cha25
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Upstream backend servers
|
# Upstream backend servers
|
||||||
upstream backend {
|
upstream backend {
|
||||||
server backend:8000;
|
server backend:8080; # Changed from 8000 to 8080 to match FastAPI port
|
||||||
keepalive 32;
|
keepalive 32;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ server {
|
|||||||
|
|
||||||
# Backend API proxy
|
# Backend API proxy
|
||||||
location /api/ {
|
location /api/ {
|
||||||
proxy_pass http://backend;
|
proxy_pass http://backend/api/; # Added /api/ to ensure proper path rewriting
|
||||||
|
|
||||||
# Proxy headers
|
# Proxy headers
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
Reference in New Issue
Block a user