This commit is contained in:
Alexandre
2025-08-23 08:34:12 +02:00
committed by GitHub
parent 4fd83ee3e3
commit 6850ef6b86

View File

@@ -15,9 +15,7 @@ mv tmpfile "${NGINX_CONFIG}"
# Remove ipv6
sed -i '/listen \[::\]/d' "${NGINX_CONFIG}"
# Add ingress parameters
sed -i "s|CWS|$(bashio::addon.ingress_port)|g" "${NGINX_CONFIG}"
sed -i 's|proxy_pass http://|proxy_pass https://|g' "${NGINX_CONFIG}"
sed -i '/proxy_pass/a proxy_ssl_verify off;' "${NGINX_CONFIG}"
sed -i "s|3000|$(bashio::addon.ingress_port)|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}"
@@ -25,7 +23,7 @@ sed -i '/proxy_buffering/a sub_filter "vnc/index.html?autoconnect" "vnc/index.ht
sed -i "s|%%path%%|${SUBFOLDER:1}|g" "${NGINX_CONFIG}"
# Correct image
sed -i "s|SUBFOLDERwebsockify|/websockify|g" "${NGINX_CONFIG}"
sed -i "s|SUBFOLDERwebsock|/websock|g" "${NGINX_CONFIG}"
# Enable ingress
cp /etc/nginx/sites-available/ingress.conf /etc/nginx/sites-enabled