Advertisement
Guest User

name

a guest
Dec 9th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. server {
  2. listen 5002;
  3. server_name localhost;
  4. location / {
  5. proxy_pass http://localhost:5000;
  6. proxy_http_version 1.1;
  7. proxy_set_header Upgrade $http_upgrade;
  8. proxy_set_header Connection keep-alive;
  9. proxy_set_header Host $host;
  10. proxy_cache_bypass $http_upgrade;
  11. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  12. proxy_set_header X-Forwarded-Proto $scheme;
  13. }
  14. }
  15. server {
  16. listen 8080;
  17. server_name 185.117.155.175;
  18. charset utf-8;
  19. root /home/max/store/frontend/dist;
  20. index index.html index.htm;
  21. # Always serve index.html for any request
  22. location / {
  23. root /home/max/store/frontend/dist;
  24. try_files $uri /index.html;
  25. }
  26. error_log /var/log/nginx/vue-app-error.log;
  27. access_log /var/log/nginx/vue-app-access.log;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement