mirror of
https://github.com/RiDDiX/home-assistant-addons.git
synced 2026-07-22 01:38:09 +08:00
feat: configure ingress support
This commit is contained in:
@@ -11,16 +11,15 @@ arch:
|
|||||||
- aarch64
|
- aarch64
|
||||||
- amd64
|
- amd64
|
||||||
- armv7
|
- armv7
|
||||||
webui: http://[HOST]:[PORT:8482]/
|
ingress: true
|
||||||
|
ingress_port: 0
|
||||||
map:
|
map:
|
||||||
- addon_config:rw
|
- addon_config:rw
|
||||||
options:
|
options:
|
||||||
app_log_level: info
|
app_log_level: info
|
||||||
disable_log_colors: false
|
disable_log_colors: false
|
||||||
web_port: 8482
|
|
||||||
mdns_network_interface: ""
|
mdns_network_interface: ""
|
||||||
schema:
|
schema:
|
||||||
app_log_level: list(silly|debug|info|warn|error)
|
app_log_level: list(silly|debug|info|warn|error)
|
||||||
disable_log_colors: bool
|
disable_log_colors: bool
|
||||||
web_port: int(1,)
|
|
||||||
mdns_network_interface: "str?"
|
mdns_network_interface: "str?"
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ home-assistant-matter-hub start \
|
|||||||
--log-level=$(bashio::config 'app_log_level') \
|
--log-level=$(bashio::config 'app_log_level') \
|
||||||
--disable-log-colors=$(bashio::config 'disable_log_colors') \
|
--disable-log-colors=$(bashio::config 'disable_log_colors') \
|
||||||
--storage-location=/config/data \
|
--storage-location=/config/data \
|
||||||
--web-port=$(bashio::config 'web_port') \
|
--web-port=$(bashio::addon.ingress_port) \
|
||||||
--home-assistant-url='http://supervisor/core' \
|
--home-assistant-url='http://supervisor/core' \
|
||||||
--home-assistant-access-token="$SUPERVISOR_TOKEN"
|
--home-assistant-access-token="$SUPERVISOR_TOKEN" \
|
||||||
|
--http-ip-whitelist="172.30.32.2"
|
||||||
|
|||||||
@@ -8,10 +8,6 @@ configuration:
|
|||||||
name: Disable log colors
|
name: Disable log colors
|
||||||
description: |
|
description: |
|
||||||
Print the log as plain text without any colors.
|
Print the log as plain text without any colors.
|
||||||
web_port:
|
|
||||||
name: Web UI Port
|
|
||||||
description: |
|
|
||||||
The port to use for the Web-UI. Default: 8482
|
|
||||||
mdns_network_interface:
|
mdns_network_interface:
|
||||||
name: mDNS Network Interface
|
name: mDNS Network Interface
|
||||||
description: |
|
description: |
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
args:
|
args:
|
||||||
package_version: "3.0.0-alpha.46"
|
package_version: "3.0.0-alpha.47"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
version: "3.0.0-alpha.46"
|
version: "3.0.0-alpha.47"
|
||||||
slug: hamh_test
|
slug: hamh_test
|
||||||
name: Home-Assistant-Matter-Hub (Test Addon // DO NOT USE)
|
name: Home-Assistant-Matter-Hub (Test Addon // DO NOT USE)
|
||||||
description: THIS IS FOR TESTING PURPOSE. DO NOT USE THIS ADDON.
|
description: THIS IS FOR TESTING PURPOSE. DO NOT USE THIS ADDON.
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
bashio::addon.config
|
|
||||||
echo ""
|
|
||||||
bashio::addon.ingress_port
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
home-assistant-matter-hub start \
|
home-assistant-matter-hub start \
|
||||||
--log-level=$(bashio::config 'app_log_level') \
|
--log-level=$(bashio::config 'app_log_level') \
|
||||||
--disable-log-colors=$(bashio::config 'disable_log_colors') \
|
--disable-log-colors=$(bashio::config 'disable_log_colors') \
|
||||||
|
|||||||
Reference in New Issue
Block a user