SHARE
TWEET

Untitled

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