Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name alexandra-portfolio.proto-dev.ru www.alexandra-portfolio.proto-dev.ru;
- location / {
- root /var/www/develop/frontend/alexandra-portfolio;
- try_files $uri /index.html;
- }
- location /admin {
- alias /var/www/develop/frontend/alexandra-portfolio-admin/build;
- try_files $uri $uri/ /admin/index.html;
- add_header Cache-Control public;
- expires 1d;
- }
- location /build {
- autoindex off;
- root /var/www/develop/frontend/alexandra-portfolio-admin/build;
- }
- location /uploads {
- autoindex off;
- root /var/www/develop/backend/alexandra-portfolio-nest-api;
- }
- location /swagger {
- proxy_pass http://localhost:4000;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection 'upgrade';
- proxy_set_header Host $host;
- proxy_cache_bypass $http_upgrade;
- }
- location /api {
- proxy_pass http://localhost:4000;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection 'upgrade';
- proxy_set_header Host $host;
- proxy_cache_bypass $http_upgrade;
- }
- }
Add Comment
Please, Sign In to add comment