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

check nginx

This commit is contained in:
1
2024-12-25 13:05:48 +06:00
parent 2ba223b666
commit 29886811e3
3 changed files with 17 additions and 21 deletions

View File

@@ -1,20 +1,17 @@
server {
listen 80;
server_name localhost;
server_name _; # Обрабатывает все входящие запросы
root /usr/share/nginx/html;
index index.html;
# Добавляем заголовки для отладки
add_header X-Debug-Path $request_uri;
add_header X-Debug-Root $document_root;
# Основной маршрут для фронтенда
location / {
try_files $uri $uri/ /index.html;
expires -1;
add_header Cache-Control "no-store, no-cache, must-revalidate";
}
# Проксирование API запросов на бэкенд
location /api/ {
proxy_pass http://backend:8000/api/;
proxy_http_version 1.1;