Guest User

Untitled

a guest
May 22nd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. location /api/ {
  2. proxy_pass http://my_backend:3000/;
  3. proxy_http_version 1.1;
  4. proxy_set_header Upgrade $http_upgrade;
  5. proxy_set_header Connection 'upgrade';
  6. proxy_set_header Host $host;
  7. proxy_cache_bypass $http_upgrade;
  8. }
  9.  
  10. location /api/ {
  11. resolver 127.0.0.11 ipv6=off valid=30s;
  12. set $upstream my_backend;
  13. proxy_pass http://$upstream:3000/;
  14. proxy_http_version 1.1;
  15. proxy_set_header Upgrade $http_upgrade;
  16. proxy_set_header Connection 'upgrade';
  17. proxy_set_header Host $host;
  18. proxy_cache_bypass $http_upgrade;
  19. }
Add Comment
Please, Sign In to add comment