Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- location /api/ {
- proxy_pass http://my_backend:3000/;
- 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/ {
- resolver 127.0.0.11 ipv6=off valid=30s;
- set $upstream my_backend;
- proxy_pass http://$upstream:3000/;
- 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