mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-10-08 07:16:39 +00:00
fix(docker): bind EOSdash to 0.0.0.0 so HA ingress can reach it (#1346)
server.eosdash_host defaults to 127.0.0.1 (not None), so the fallback in run_eos() that inherits server.host never triggers. The --host 0.0.0.0 CLI argument only sets server.host. As a result EOSdash binds to 127.0.0.1 inside the container and the Home Assistant Supervisor ingress (ingress_port 8504) cannot reach it (502). Set EOS_SERVER__EOSDASH_HOST=0.0.0.0 in the image.
This commit is contained in:
@@ -77,6 +77,10 @@ ENV MPLCONFIGDIR="${EOS_DATA_DIR}/mplconfigdir"
|
||||
|
||||
# Overwrite when starting the container in a production environment
|
||||
ENV EOS_SERVER__EOSDASH_SESSKEY=s3cr3t
|
||||
# EOSdash must listen on all interfaces so HA ingress can reach it.
|
||||
# server.eosdash_host defaults to 127.0.0.1 (not None), so it does not
|
||||
# inherit --host 0.0.0.0 from the CLI.
|
||||
ENV EOS_SERVER__EOSDASH_HOST=0.0.0.0
|
||||
|
||||
# Set environment variables to reduce threading needs
|
||||
ENV OPENBLAS_NUM_THREADS=1
|
||||
|
||||
Reference in New Issue
Block a user