mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Update 31-nginx.sh
This commit is contained in:
@@ -35,7 +35,9 @@ sed -i "s|%%base_subpath%%|${base_path}|g" /etc/nginx/servers/ingress.conf
|
||||
sed -i "s|%%base_subpath%%|${base_path}|g" /etc/nginx/servers/ssl.conf
|
||||
|
||||
if bashio::config.has_value "BASE_URL"; then
|
||||
sed -i "s|%%BASE_URL%%|$(bashio::config "BASE_URL"):$(bashio::addon.port 9001)|g" /etc/nginx/servers/ssl.conf
|
||||
BASE_URL="$(bashio::config "BASE_URL")"
|
||||
BASE_URL="${BASE_URL#*://}:$(bashio::addon.port 9001)"
|
||||
sed -i "s|%%BASE_URL%%|$BASE_URL|g" /etc/nginx/servers/ssl.conf
|
||||
else
|
||||
sed -i "/BASE_URL/d" /etc/nginx/servers/ssl.conf
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user