Skip to content

Commit

Permalink
Port update
Browse files Browse the repository at this point in the history
  • Loading branch information
QuinnDamerell committed Jan 9, 2025
1 parent c7782d2 commit 51b3317
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions homeway/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ arch:
map:
- homeassistant_config:rw

# We don't use the default port because it conflicts with software like giv_tcp. So we use our own random port.
ingress_port: 45120

# Add some config options for user to control the addon.
options:
debug_level: "info"
Expand Down
5 changes: 3 additions & 2 deletions homeway/homeway_linuxhost/webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ def __init__(self, logger:logging.Logger, pluginId, devConfig_CanBeNone) -> None

# Requests must come from 172.30.32.2 IP, they are authenticated by Home Assistant atomically, cool!
self.AllowAllIps = self.GetDevConfigStr(devConfig_CanBeNone, "WebServerAllowAllIps") is not None
# We bind to the default docker ips and use port 8099, the port HA pre-defines for ingress.
# We bind to the default docker ips and use port 45120.
# The default port for Home Assistant is 8099, but that's used already by some more major software.
self.HostName = "0.0.0.0"
self.Port = 8099
self.Port = 45120


def Start(self):
Expand Down

0 comments on commit 51b3317

Please sign in to comment.