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,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;
|
||||
|
Reference in New Issue
Block a user