From 14356af04f432f5b64a5d9bf1607ffedf556a22a Mon Sep 17 00:00:00 2001 From: "Gleb O. Ivaniczkij" Date: Sat, 17 Aug 2024 00:54:40 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D1=8B=20=D0=BD=D0=BE=D0=B2=D1=8B=D0=B5=20?= =?UTF-8?q?=D0=BC=D0=B0=D1=80=D1=88=D1=80=D1=83=D1=82=D1=8B=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20React?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/main.conf | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/nginx/main.conf b/nginx/main.conf index e65df00..76320ad 100644 --- a/nginx/main.conf +++ b/nginx/main.conf @@ -10,6 +10,13 @@ server { 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 / { include /opt/cit-is-bot/nginx/secure-headers.conf; include ./conf.d/http-proxy.conf; @@ -21,16 +28,6 @@ server { include /opt/cit-is-bot/nginx/secure-headers.conf; include ./conf.d/ws-proxy.conf; - proxy_pass http://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 /; + proxy_pass http://frontend.cit.csasq.ru; } }