ingress #1
|
|
@ -4,8 +4,6 @@ set -e
|
||||||
RECIPES_PATH=$(bashio::config 'recipes_path')
|
RECIPES_PATH=$(bashio::config 'recipes_path')
|
||||||
PORT=9081
|
PORT=9081
|
||||||
|
|
||||||
bashio::log.info "Chemin Ingress: ${HA_TOKEN}"
|
|
||||||
|
|
||||||
# Récupérer le chemin Ingress
|
# Récupérer le chemin Ingress
|
||||||
INGRESS_TOKEN=$(bashio::config 'ingress_token')
|
INGRESS_TOKEN=$(bashio::config 'ingress_token')
|
||||||
if [ -n "$INGRESS_TOKEN" ]; then
|
if [ -n "$INGRESS_TOKEN" ]; then
|
||||||
|
|
@ -22,7 +20,7 @@ if [ -n "$INGRESS_PATH" ]; then
|
||||||
exec cook server "${RECIPES_PATH}" \
|
exec cook server "${RECIPES_PATH}" \
|
||||||
--port "${PORT}" \
|
--port "${PORT}" \
|
||||||
--host "0.0.0.0" \
|
--host "0.0.0.0" \
|
||||||
--url-prefix "${INGRESS_PATH}" \
|
--url-prefix "./" \
|
||||||
>> /proc/1/fd/1 2>&1
|
>> /proc/1/fd/1 2>&1
|
||||||
else
|
else
|
||||||
exec cook server "${RECIPES_PATH}" \
|
exec cook server "${RECIPES_PATH}" \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue