Revert "use ws settings for gateway endpoint"

This reverts commit cb70842280.

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.
This commit is contained in:
Luna Mendes 2018-07-21 17:08:41 -03:00
parent 753dc03fc7
commit 5e4230bc31
1 changed files with 1 additions and 3 deletions

View File

@ -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')