Advertisement
Guest User

Untitled

a guest
Nov 24th, 2021
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.86 KB | None | 0 0
  1.  location /api {
  2.                 proxy_pass http://localhost: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/movies {
  11.                 proxy_pass http://localhost:3000/movies;
  12.                 proxy_http_version 1.1;
  13.                 proxy_set_header Upgrade $http_upgrade;
  14.                 proxy_set_header Connection 'upgrade';
  15.                 proxy_set_header Host $host;
  16.                 proxy_cache_bypass $http_upgrade;
  17.         }
  18.  
  19. location / {
  20.                 # First attempt to serve request as file, then
  21.                 # as directory, then fall back to displaying a 404.
  22.                 try_files $uri $uri/ =404;
  23.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement