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():
|
||||
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')
|
||||
|
|
|
|||
Loading…
Reference in New Issue