mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Update 90-ingress.sh
This commit is contained in:
@@ -18,11 +18,8 @@ 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}"
|
||||
sed -i '/proxy_buffering/a sub_filter "vnc/index.html?autoconnect" "vnc/index.html?path=${SUBFOLDER:1}?autoconnect";' "${NGINX_CONFIG}"
|
||||
|
||||
|
||||
#sed -i '/server {/a include /etc/nginx/includes/server_params.conf;' "${NGINX_CONFIG}"
|
||||
#sed -i '/server {/a include /etc/nginx/includes/proxy_params.conf;' "${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}"
|
||||
|
||||
# Enable ingress
|
||||
cp /etc/nginx/sites-available/ingress.conf /etc/nginx/sites-enabled
|
||||
|
||||
Reference in New Issue
Block a user