Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 5002;
- server_name localhost;
- location / {
- proxy_pass http://localhost:5000;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection keep-alive;
- proxy_set_header Host $host;
- proxy_cache_bypass $http_upgrade;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- }
- }
- server {
- listen 8080;
- server_name 185.117.155.175;
- charset utf-8;
- root /home/max/store/frontend/dist;
- index index.html index.htm;
- # Always serve index.html for any request
- location / {
- root /home/max/store/frontend/dist;
- try_files $uri /index.html;
- }
- error_log /var/log/nginx/vue-app-error.log;
- access_log /var/log/nginx/vue-app-access.log;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement