mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Adapt
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user