mirror of
https://github.com/hassio-addons/addon-home-panel.git
synced 2025-05-05 03:11:24 +00:00
17 lines
713 B
Bash
Executable file
17 lines
713 B
Bash
Executable file
#!/command/with-contenv bashio
|
|
# ==============================================================================
|
|
# Home Assistant Community Add-on: Home Panel
|
|
# Configures NGINX for use with Home Panel
|
|
# ==============================================================================
|
|
|
|
# Generate direct access configuration, if enabled.
|
|
if bashio::var.has_value "$(bashio::addon.port 80)"; then
|
|
bashio::config.require.ssl
|
|
bashio::var.json \
|
|
certfile "$(bashio::config 'certfile')" \
|
|
keyfile "$(bashio::config 'keyfile')" \
|
|
ssl "^$(bashio::config 'ssl')" \
|
|
| tempio \
|
|
-template /etc/nginx/templates/direct.gtpl \
|
|
-out /etc/nginx/servers/direct.conf
|
|
fi
|