mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-28 10:16:06 +02:00
Update run.txt
This commit is contained in:
@@ -42,14 +42,16 @@ fi
|
|||||||
#################
|
#################
|
||||||
# NGINX SETTING #
|
# NGINX SETTING #
|
||||||
#################
|
#################
|
||||||
bashio::config.require.ssl
|
|
||||||
if bashio::config.true 'ssl'; then
|
|
||||||
bashio::log.info "Configuring ssl"
|
|
||||||
CERTFILE=$(bashio::config 'certfile')
|
|
||||||
KEYFILE=$(bashio::config 'keyfile')
|
|
||||||
sed -i "7 i tls /ssl/$CERTFILE /ssl/$KEYFILE" /app/Caddyfile
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
sed -i "s/80/9925/g" /app/Caddyfile
|
||||||
|
|
||||||
|
bashio::config.require.ssl
|
||||||
|
if bashio::config.true 'ssl'; then
|
||||||
|
bashio::log.info "Configuring ssl"
|
||||||
|
CERTFILE=$(bashio::config 'certfile')
|
||||||
|
KEYFILE=$(bashio::config 'keyfile')
|
||||||
|
sed -i "7 i tls /ssl/$CERTFILE /ssl/$KEYFILE" /app/Caddyfile
|
||||||
|
fi
|
||||||
|
|
||||||
###########
|
###########
|
||||||
# Ingress #
|
# Ingress #
|
||||||
|
|||||||
Reference in New Issue
Block a user