Установлены новые маршруты для React

Этот коммит содержится в:
Глеб Иваницкий 2024-08-17 00:54:40 +03:00
родитель 7e7e3ef500
Коммит 14356af04f

Просмотреть файл

@ -10,6 +10,13 @@ server {
keepalive_timeout 30; keepalive_timeout 30;
location /api {
include /opt/cit-is-bot/nginx/secure-headers.conf;
include ./conf.d/http-proxy.conf;
proxy_pass http://api.cit.csasq.ru;
}
location / { location / {
include /opt/cit-is-bot/nginx/secure-headers.conf; include /opt/cit-is-bot/nginx/secure-headers.conf;
include ./conf.d/http-proxy.conf; include ./conf.d/http-proxy.conf;
@ -21,16 +28,6 @@ server {
include /opt/cit-is-bot/nginx/secure-headers.conf; include /opt/cit-is-bot/nginx/secure-headers.conf;
include ./conf.d/ws-proxy.conf; include ./conf.d/ws-proxy.conf;
proxy_pass http://cit.csasq.ru; proxy_pass http://frontend.cit.csasq.ru;
}
location /static/ {
include /opt/cit-is-bot/nginx/secure-headers.conf;
include ./conf.d/gzip.conf;
root /opt/cit-is-bot;
expires -1;
add_header Service-Worker-Allowed /;
} }
} }