1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

change docker

This commit is contained in:
MoonTestUse1
2024-12-23 23:40:31 +06:00
parent 4c3c1bfc6d
commit 876abdfc86
4 changed files with 21 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
# docker/nginx/conf.d/default.conf
upstream backend {
server backend:8000; # Change port to match FastAPI default
server backend:8000;
}
server {
@@ -18,7 +18,7 @@ server {
# Proxy API requests
location /api/ {
proxy_pass http://backend/; # Remove /api/ from proxy_pass
proxy_pass http://backend/api/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
@@ -28,10 +28,4 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# Handle favicon
location = /favicon.ico {
access_log off;
log_not_found off;
}
}