Files
ha-Buchhorster-Addons/esphome_proxy/rootfs/etc/s6-overlay/s6-rc.d/init-nginx/run
2025-11-14 13:21:18 +01:00

16 lines
667 B
Plaintext
Executable File

#!/command/with-contenv bashio
# shellcheck shell=bash
# ==============================================================================
# Configures NGINX for use with this add-on.
# ==============================================================================
# Note the ^ at the beginning of the proxy_pass_host value
# This stops bashio:var.json from passing the value as a string
bashio::var.json \
entry "$(bashio::addon.ingress_entry)" \
server "$(bashio::config 'server')" \
proxy_pass_host "^$(bashio::config 'proxy_pass_host')" \
| tempio \
-template /etc/nginx/templates/ingress.gtpl \
-out /etc/nginx/servers/ingress.conf