mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
fix: [sync server] remove hardcoded host
This commit is contained in:
parent
e4344898b4
commit
23ad74c591
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ if __name__ == '__main__':
|
||||||
cert_dir = os.environ['AIL_FLASK']
|
cert_dir = os.environ['AIL_FLASK']
|
||||||
ssl_context.load_cert_chain(certfile=os.path.join(cert_dir, 'server.crt'), keyfile=os.path.join(cert_dir, 'server.key'))
|
ssl_context.load_cert_chain(certfile=os.path.join(cert_dir, 'server.crt'), keyfile=os.path.join(cert_dir, 'server.key'))
|
||||||
|
|
||||||
start_server = websockets.serve(ail_to_ail_serv, "localhost", 4443, ssl=ssl_context, create_protocol=AIL_2_AIL_Protocol)
|
start_server = websockets.serve(ail_to_ail_serv, host, port, ssl=ssl_context, create_protocol=AIL_2_AIL_Protocol)
|
||||||
|
|
||||||
print(f'Server Launched: wss://{host}:{port}')
|
print(f'Server Launched: wss://{host}:{port}')
|
||||||
redis_logger.info(f'Server Launched: wss://{host}:{port}')
|
redis_logger.info(f'Server Launched: wss://{host}:{port}')
|
||||||
|
|
Loading…
Reference in a new issue