Enhance NGINX config modifications in 90-ingress.sh

Added additional sed commands to modify NGINX configuration for Home Assistant ingress.
This commit is contained in:
Alexandre
2025-11-16 20:34:55 +01:00
committed by GitHub
parent ef13a12add
commit 613c1767d5

View File

@@ -25,7 +25,13 @@ sed -i '/listen \[::\]/d' "${NGINX_CONFIG}"
sed -i "s|3000|$(bashio::addon.ingress_port)|g" "${NGINX_CONFIG}"
sed -i "s|SUBFOLDER|${SUBFOLDER}|g" "${NGINX_CONFIG}"
sed -i "s|CWS|8082|g" "${NGINX_CONFIG}"
sed -i "s|REPLACE_HOME|${HOME:-/root}|g" "${NGINX_CONFIG}"
sed -i "s|REPLACE_DOWNLOADS_PATH|${HOME:-/config}|g" "${NGINX_CONFIG}"
sed -i '/proxy_buffering/a proxy_set_header Accept-Encoding "";' "${NGINX_CONFIG}"
sed -i '/proxy_buffering/a sub_filter_once off;' "${NGINX_CONFIG}"
sed -i '/proxy_buffering/a sub_filter_types *;' "${NGINX_CONFIG}"
sed -i '/proxy_buffering/a sub_filter "vnc/index.html?autoconnect" "vnc/index.html?path=%%path%%/websockify?autoconnect";' "${NGINX_CONFIG}"
sed -i "s|%%path%%|${SUBFOLDER:1}|g" "${NGINX_CONFIG}"
# Avoid content encoding on proxied responses to keep Selkies happy
sed -i '/proxy_buffering/a \