mirror of
https://github.com/hassio-addons/addon-bookstack.git
synced 2025-05-06 20:21:27 +00:00
17 lines
521 B
Text
17 lines
521 B
Text
#!/usr/bin/with-contenv bashio
|
|
# ==============================================================================
|
|
# Community Hass.io Add-ons: Bookstack
|
|
# Runs the Nginx daemon
|
|
# ==============================================================================
|
|
|
|
# Wait for PHP-FPM to become available
|
|
bashio::net.wait_for 9001
|
|
|
|
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
|