mirror of https://gitlab.com/litecord/litecord.git
use ws settings for gateway endpoint
This commit is contained in:
parent
491bdf31df
commit
cb70842280
|
|
@ -7,7 +7,9 @@ bp = Blueprint('gateway', __name__)
|
|||
|
||||
def get_gw():
|
||||
proto = 'wss://' if app.config['IS_SSL'] else 'ws://'
|
||||
return f'{proto}{app.config["WEBSERVER_URL"]}/ws'
|
||||
ws_host = app.config['WS_HOST']
|
||||
ws_port = app.config['WS_PORT']
|
||||
return f'{proto}{ws_host}:{ws_port}/ws'
|
||||
|
||||
|
||||
@bp.route('/gateway')
|
||||
|
|
|
|||
Loading…
Reference in New Issue