addon-vscode/vscode/rootfs/etc/services.d/nginx/run
Franck Nijhof 51d0f8f96d
🔨 Re-branding
2020-02-15 16:15:28 +01:00

17 lines
540 B
Text

#!/usr/bin/with-contenv bashio
# ==============================================================================
# Home Assistant Community Add-on: Visual Studio Code
# Runs the Nginx daemon
# ==============================================================================
# Wait for code-server to become available
bashio::net.wait_for 8443
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