File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,11 +18,33 @@ server {
1818 listen 443 ssl ;
1919 server_name dev . procollab . ru ;
2020 server_tokens off ;
21+ root /home/front /app ;
22+ index index . html ;
2123
2224 ssl_certificate /etc/letsencrypt /live /dev . procollab . ru -0001 /fullchain . pem ;
2325 ssl_certificate_key /etc/letsencrypt /live /dev . procollab . ru -0001 /privkey . pem ;
2426
25- location / {
27+ location ~ ^/(admin|api-auth|files|industries|news|projects|vacancies|core|invites|auth|chats|events|programs|courses|rate-project|feed|api|anymail|ws)(/ |$) {
28+ include /etc /nginx /procollab /includes /proxy_app . inc ;
29+ }
30+
31+ location ~ ^/(swagger(\. json|\. yaml)?|swagger/ |redoc /?)$ {
32+ include /etc /nginx /procollab /includes /proxy_app . inc ;
33+ }
34+
35+ location ^~ /static/admin / {
36+ include /etc /nginx /procollab /includes /proxy_app . inc ;
37+ }
38+
39+ location ^~ /static/drf -yasg / {
40+ include /etc /nginx /procollab /includes /proxy_app . inc ;
41+ }
42+
43+ location ^~ /static/rest _framework / {
2644 include /etc /nginx /procollab /includes /proxy_app . inc ;
2745 }
46+
47+ location / {
48+ try_files $uri $uri/ /index . html ;
49+ }
2850}
You can’t perform that action at this time.
0 commit comments