From 3f94f971a18f5ffdb0ceca7e984251ccdb6e146e Mon Sep 17 00:00:00 2001 From: Toksi Date: Mon, 18 May 2026 11:30:54 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BC=D0=B0=D1=80=D1=88=D1=80=D1=83=D1=82?= =?UTF-8?q?=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8F=20frontend=20=D0=BD=D0=B0?= =?UTF-8?q?=20dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/nginx/host/dev/dev.procollab.ru | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/deploy/nginx/host/dev/dev.procollab.ru b/deploy/nginx/host/dev/dev.procollab.ru index b8ce3c50..d1b13028 100644 --- a/deploy/nginx/host/dev/dev.procollab.ru +++ b/deploy/nginx/host/dev/dev.procollab.ru @@ -18,11 +18,33 @@ server { listen 443 ssl; server_name dev.procollab.ru; server_tokens off; + root /home/front/app; + index index.html; ssl_certificate /etc/letsencrypt/live/dev.procollab.ru-0001/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/dev.procollab.ru-0001/privkey.pem; - location / { + location ~ ^/(admin|api-auth|files|industries|news|projects|vacancies|core|invites|auth|chats|events|programs|courses|rate-project|feed|api|anymail|ws)(/|$) { + include /etc/nginx/procollab/includes/proxy_app.inc; + } + + location ~ ^/(swagger(\.json|\.yaml)?|swagger/|redoc/?)$ { + include /etc/nginx/procollab/includes/proxy_app.inc; + } + + location ^~ /static/admin/ { + include /etc/nginx/procollab/includes/proxy_app.inc; + } + + location ^~ /static/drf-yasg/ { + include /etc/nginx/procollab/includes/proxy_app.inc; + } + + location ^~ /static/rest_framework/ { include /etc/nginx/procollab/includes/proxy_app.inc; } + + location / { + try_files $uri $uri/ /index.html; + } }