mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 04:44:05 +02:00
explicit ip
This commit is contained in:
@@ -121,10 +121,9 @@ mkdir -p /var/log/nginx && touch /var/log/nginx/error.log
|
|||||||
INGRESSURL=$(bashio::config 'local_ip_port')$(bashio::addon.ingress_url)
|
INGRESSURL=$(bashio::config 'local_ip_port')$(bashio::addon.ingress_url)
|
||||||
host_port=$(bashio::core.port)
|
host_port=$(bashio::core.port)
|
||||||
ingress_url=$(bashio::addon.ingress_entry)
|
ingress_url=$(bashio::addon.ingress_entry)
|
||||||
|
ADDONPORT=$(bashio::addon.port "8081")
|
||||||
echo $INGRESSURL
|
host_ip=$(bashio::network.ipv4_address)
|
||||||
echo $host_port
|
host_ip=${host_ip%/*}
|
||||||
echo $ingress_url
|
|
||||||
|
|
||||||
###############
|
###############
|
||||||
# LAUNCH APPS #
|
# LAUNCH APPS #
|
||||||
@@ -139,8 +138,6 @@ fi \
|
|||||||
bashio::log.info "Joal started with path http://ip/${UIPATH}/ui secret token $TOKEN"
|
bashio::log.info "Joal started with path http://ip/${UIPATH}/ui secret token $TOKEN"
|
||||||
bashio::log.info "Please wait, loading..."
|
bashio::log.info "Please wait, loading..."
|
||||||
|
|
||||||
ADDONPORT=$(bashio::addon.port "8081")
|
|
||||||
|
|
||||||
# Wait for transmission to become available
|
# Wait for transmission to become available
|
||||||
bashio::net.wait_for 8081 localhost 900 || true
|
bashio::net.wait_for 8081 localhost 900 || true
|
||||||
bashio::log.warning "Configuration for direct access (in http://homeassistant.local:${ADDONPORT}/${UIPATH}/ui):"
|
bashio::log.warning "Configuration for direct access (in http://homeassistant.local:${ADDONPORT}/${UIPATH}/ui):"
|
||||||
@@ -149,7 +146,7 @@ bashio::log.info "... server port : ${ADDONPORT}"
|
|||||||
bashio::log.info "... Path prefix : ${UIPATH}"
|
bashio::log.info "... Path prefix : ${UIPATH}"
|
||||||
bashio::log.info "... Secret token : $TOKEN"
|
bashio::log.info "... Secret token : $TOKEN"
|
||||||
bashio::log.warning "Configuration for Ingress (in app):"
|
bashio::log.warning "Configuration for Ingress (in app):"
|
||||||
bashio::log.info "... address : homeassistant.local:$host_port$ingress_url/"
|
bashio::log.info "... address : ${host_ip}:$host_port$ingress_url/"
|
||||||
bashio::log.info "... server port : $host_port"
|
bashio::log.info "... server port : $host_port"
|
||||||
bashio::log.info "... Path prefix : ${UIPATH}"
|
bashio::log.info "... Path prefix : ${UIPATH}"
|
||||||
bashio::log.info "... Secret token : $TOKEN"
|
bashio::log.info "... Secret token : $TOKEN"
|
||||||
|
|||||||
Reference in New Issue
Block a user