use the HOST environment variable to bind to another interface than 0.0.0.0

I have external IPv6 only. So to use spotizerr I need to bind the application to [::] e.g. via an environment variable like HOST
This commit is contained in:
CCarpo
2025-08-06 15:51:36 +02:00
committed by GitHub
parent 4c18e1c3d3
commit 6911e1396e

2
app.py
View File

@@ -271,7 +271,7 @@ if __name__ == "__main__":
# Run with uvicorn
uvicorn.run(
app,
host="0.0.0.0",
host="${HOST:-0.0.0.0}",
port=7171,
log_level="info",
access_log=True