SHARE
TWEET

Untitled

a guest Dec 27th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. location /websocket/ {
  2.         try_files $uri @proxy_to_app;
  3.     }
  4.  
  5.     location @proxy_to_app {
  6.         fastcgi_read_timeout 300;
  7.         proxy_http_version 1.1;
  8.         proxy_set_header Upgrade $http_upgrade;
  9.         proxy_set_header Connection "upgrade";
  10.  
  11.         proxy_redirect off;
  12.         proxy_set_header Host $host;
  13.         proxy_set_header X-Real-IP $remote_addr;
  14.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  15.         proxy_set_header X-Forwarded-Host $server_name;
  16.        
  17.         proxy_pass http://channels-backend;
  18.     }
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