mirror of https://gitlab.com/litecord/litecord.git
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:
parent
753dc03fc7
commit
5e4230bc31
|
|
@ -7,9 +7,7 @@ bp = Blueprint('gateway', __name__)
|
||||||
|
|
||||||
def get_gw():
|
def get_gw():
|
||||||
proto = 'wss://' if app.config['IS_SSL'] else 'ws://'
|
proto = 'wss://' if app.config['IS_SSL'] else 'ws://'
|
||||||
ws_host = app.config['WS_HOST']
|
return f'{proto}{app.config["WEBSERVER_URL"]}/ws'
|
||||||
ws_port = app.config['WS_PORT']
|
|
||||||
return f'{proto}{ws_host}:{ws_port}/ws'
|
|
||||||
|
|
||||||
|
|
||||||
@bp.route('/gateway')
|
@bp.route('/gateway')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue