ingress #1
|
|
@ -4,27 +4,9 @@ set -e
|
||||||
RECIPES_PATH=$(bashio::config 'recipes_path')
|
RECIPES_PATH=$(bashio::config 'recipes_path')
|
||||||
PORT=9081
|
PORT=9081
|
||||||
|
|
||||||
# Récupérer le chemin Ingress
|
bashio::log.info "Démarrage de CookCLI sur le port ${PORT}..."
|
||||||
#INGRESS_TOKEN=$(bashio::config 'ingress_token')
|
|
||||||
#if [ -n "$INGRESS_TOKEN" ]; then
|
|
||||||
# INGRESS_PATH="/api/hassio_ingress/${INGRESS_TOKEN}"
|
|
||||||
# bashio::log.info "Chemin Ingress: ${INGRESS_PATH}"
|
|
||||||
#else
|
|
||||||
# INGRESS_PATH=""
|
|
||||||
#fi
|
|
||||||
|
|
||||||
bashio::log.info "${INGRESS_PATH} Démarrage de CookCLI sur le port ${PORT}..."
|
exec cook server "${RECIPES_PATH}" \
|
||||||
|
--port "${PORT}" \
|
||||||
# Si CookCLI supporte --base-path
|
--host "0.0.0.0" \
|
||||||
if [ -n "$INGRESS_PATH" ]; then
|
>> /proc/1/fd/1 2>&1
|
||||||
exec cook server "${RECIPES_PATH}" \
|
|
||||||
--port "${PORT}" \
|
|
||||||
--host "0.0.0.0" \
|
|
||||||
--url-prefix "./" \
|
|
||||||
>> /proc/1/fd/1 2>&1
|
|
||||||
else
|
|
||||||
exec cook server "${RECIPES_PATH}" \
|
|
||||||
--port "${PORT}" \
|
|
||||||
--host "0.0.0.0" \
|
|
||||||
>> /proc/1/fd/1 2>&1
|
|
||||||
fi
|
|
||||||
Loading…
Reference in a new issue