Guest User

Untitled

a guest
Jun 25th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. location /webapp {
  2. #alias /var/www/webapp;
  3. alias /app/webapp/dist;
  4. try_files $uri$args $uri$args/ $uri/ /webapp/index.html;
  5. }
  6. location /api {
  7. proxy_pass http://localhost:3001;
  8. proxy_http_version 1.1;
  9. proxy_set_header Upgrade $http_upgrade;
  10. proxy_set_header Connection 'upgrade';
  11. proxy_set_header Host $host;
  12. proxy_cache_bypass $http_upgrade;
  13. client_max_body_size 100M;
  14. }
  15.  
  16. location /webapp {
  17. #alias /var/www/webapp;
  18. alias /app/webapp/dist;
  19. try_files $uri$args $uri$args/ $uri/ /webapp/index.html;
  20.  
  21. location /api {
  22. proxy_pass http://localhost:3001;
  23. proxy_http_version 1.1;
  24. proxy_set_header Upgrade $http_upgrade;
  25. proxy_set_header Connection 'upgrade';
  26. proxy_set_header Host $host;
  27. proxy_cache_bypass $http_upgrade;
  28. client_max_body_size 100M;
  29. }
Add Comment
Please, Sign In to add comment