From 5e4230bc310c24fb840e9a5bc6e6064d2c044869 Mon Sep 17 00:00:00 2001 From: Luna Mendes Date: Sat, 21 Jul 2018 17:08:41 -0300 Subject: [PATCH] Revert "use ws settings for gateway endpoint" This reverts commit cb708422809fd69885ee26da917315f75952fae7. WEBSERVER_URL was made for the case where litecord is behind a reverse proxy (nginx / cloudflare, etc). If the instance isn't behind a reverse proxy, you can set WEBSERVER_URL to your own local address. --- litecord/blueprints/gateway.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/litecord/blueprints/gateway.py b/litecord/blueprints/gateway.py index 4cade56..05b9cd0 100644 --- a/litecord/blueprints/gateway.py +++ b/litecord/blueprints/gateway.py @@ -7,9 +7,7 @@ bp = Blueprint('gateway', __name__) def get_gw(): proto = 'wss://' if app.config['IS_SSL'] else 'ws://' - ws_host = app.config['WS_HOST'] - ws_port = app.config['WS_PORT'] - return f'{proto}{ws_host}:{ws_port}/ws' + return f'{proto}{app.config["WEBSERVER_URL"]}/ws' @bp.route('/gateway')