Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- location /webapp {
- #alias /var/www/webapp;
- alias /app/webapp/dist;
- try_files $uri$args $uri$args/ $uri/ /webapp/index.html;
- }
- location /api {
- proxy_pass http://localhost:3001;
- 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;
- client_max_body_size 100M;
- }
- location /webapp {
- #alias /var/www/webapp;
- alias /app/webapp/dist;
- try_files $uri$args $uri$args/ $uri/ /webapp/index.html;
- location /api {
- proxy_pass http://localhost:3001;
- 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;
- client_max_body_size 100M;
- }
Add Comment
Please, Sign In to add comment