mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
change docker
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
upstream backend {
|
||||
server backend:8000; # Changed from 8080 to 8000
|
||||
server backend:8000; # Changed from 8080 to match FastAPI port
|
||||
}
|
||||
|
||||
server {
|
||||
@@ -9,8 +9,9 @@ server {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# Fix permissions and routing
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
add_header Cache-Control "no-cache";
|
||||
}
|
||||
|
||||
@@ -25,4 +26,10 @@ server {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
|
||||
# Add explicit favicon handling
|
||||
location = /favicon.ico {
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user