added puck events

This commit is contained in:
GotthardG
2024-12-11 14:20:17 +01:00
parent 958c9167fc
commit c3fa02734a
2 changed files with 12 additions and 3 deletions

View File

@ -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,
)