added puck events
This commit is contained in:
@ -80,7 +80,16 @@ if __name__ == "__main__":
|
||||
if environment == 'test':
|
||||
cert_path = "ssl/mx-aare-test.psi.ch.pem"
|
||||
key_path = "ssl/mx-aare-test.psi.ch.key"
|
||||
host = "0.0.0.0" # Bind to all interfaces
|
||||
else:
|
||||
host = "127.0.0.1" # Default for other environments
|
||||
|
||||
# Run the application with appropriate SSL setup
|
||||
uvicorn.run(app, port=8000, log_level="debug",
|
||||
ssl_keyfile=key_path, ssl_certfile=cert_path)
|
||||
uvicorn.run(
|
||||
app,
|
||||
host=host,
|
||||
port=8000,
|
||||
log_level="debug",
|
||||
ssl_keyfile=key_path,
|
||||
ssl_certfile=cert_path,
|
||||
)
|
Reference in New Issue
Block a user