daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen 4000 default_server;
  3.     listen [::]:4000 default_server;
  4.  
  5.     proxy_send_timeout  180;
  6.     proxy_read_timeout  180;
  7.  
  8.     server_name _;
  9.  
  10.     location / {
  11.         proxy_http_version 1.1;
  12.         proxy_set_header Upgrade $http_upgrade;
  13.         proxy_set_header Connection "upgrade";
  14.  
  15.         proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
  16.         proxy_set_header Host $http_host;
  17.         proxy_redirect off;
  18.         if (!-f $request_filename) {
  19.             proxy_pass http://127.0.0.1:8080;
  20.             break;
  21.         }
  22.     }
  23.  
  24.     location /api {
  25.         proxy_http_version 1.1;
  26.         proxy_set_header Upgrade $http_upgrade;
  27.         proxy_set_header Connection "upgrade";
  28.  
  29.         proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
  30.         proxy_set_header Host $http_host;
  31.         proxy_redirect off;
  32.         if (!-f $request_filename) {
  33.             proxy_pass http://127.0.0.1:5000;
  34.             break;
  35.         }
  36.     }
  37. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top