Closed wizVR-zhangjun closed 2 years ago
if name == 'main':
# if vosk_cert_file:
# ssl_context = ssl.SSLContext()
# ssl_context.load_cert_chain(vosk_cert_file)
# else:
# ssl_context = None
try:
ssl_context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
ssl_context.check_hostname = False
ssl_context.load_cert_chain('caimouse.crt', 'caimouse.key')
except Exception as e:
print(e)
app = web.Application()
app.router.add_post('/offer', offer)
app.router.add_get('/', index)
app.router.add_static('/static/', path=ROOT / 'static', name='static')
try:
web.run_app(app,port=vosk_port,host='192.168.2.78',ssl_context= ssl_context)# port=vosk_port,
# web.run_app(app,port=vosk_port,host='192.168.2.78',ssl_context='adhoc')# port=vosk_port,
except Exception as ex:
print('e---->',ex)
I want to change the ip instead of http://0.0.0.0:2700 to the ip I want. For example: https://xxxx/xxxx/xxx. Other clients can also access it, not just my own Computer accessible to