Fixed nginx #70
This commit is contained in:
		@@ -24,7 +24,7 @@ http {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    location /api {
 | 
			
		||||
      proxy_pass http://kdb_bot_prod_1;
 | 
			
		||||
      proxy_pass http://kdb_bot_staging_1;
 | 
			
		||||
      proxy_http_version 1.1;
 | 
			
		||||
      proxy_set_header Upgrade $http_upgrade;
 | 
			
		||||
      proxy_set_header Connection 'upgrade';
 | 
			
		||||
@@ -32,5 +32,13 @@ http {
 | 
			
		||||
      proxy_cache_bypass $http_upgrade;
 | 
			
		||||
      proxy_redirect off;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    location /api/socket.io {
 | 
			
		||||
      proxy_http_version 1.1;
 | 
			
		||||
      proxy_buffering off;
 | 
			
		||||
      proxy_set_header Upgrade $http_upgrade;
 | 
			
		||||
      proxy_set_header Connection "Upgrade";
 | 
			
		||||
      proxy_pass http://kdb_bot_staging_1/api/socket.io;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user