Ajouter cookcli/rootfs/etc/services.d/nginx/run
This commit is contained in:
parent
33c6219cf3
commit
8ba7b35760
11
cookcli/rootfs/etc/services.d/nginx/run
Normal file
11
cookcli/rootfs/etc/services.d/nginx/run
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/with-contenv bashio
|
||||||
|
set -e
|
||||||
|
|
||||||
|
bashio::log.info "=== Service Nginx pour l'Ingress ==="
|
||||||
|
|
||||||
|
# Générer un fichier de configuration pour les headers Ingress
|
||||||
|
INGRESS_PATH="/api/hassio_ingress/$(bashio::config 'ingress_token')"
|
||||||
|
bashio::log.info "Chemin Ingress: ${INGRESS_PATH}"
|
||||||
|
|
||||||
|
# Démarrer Nginx
|
||||||
|
exec nginx -g "daemon off;" >> /proc/1/fd/1 2>&1
|
||||||
Loading…
Reference in a new issue