mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-25 20:01:02 +02:00
18 lines
545 B
Plaintext
18 lines
545 B
Plaintext
#!/usr/bin/with-contenv bashio
|
|
# ==============================================================================
|
|
# Home Assistant Community Add-on: AdGuard Home
|
|
# Runs the Nginx daemon
|
|
# ==============================================================================
|
|
|
|
# Wait for adguard to become available
|
|
bashio::net.wait_for 45158 localhost 900
|
|
|
|
bashio::log.info "Starting NGinx..."
|
|
|
|
# Disable HA Authentication if front door is open
|
|
if bashio::config.true 'leave_front_door_open'; then
|
|
export DISABLE_HA_AUTHENTICATION=true
|
|
fi
|
|
|
|
exec nginx
|