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; } }