Update 90-ingress.sh

This commit is contained in:
Alexandre
2024-04-04 15:46:26 +02:00
committed by GitHub
parent bf27c9adcc
commit 2c7f056c2f

View File

@@ -22,5 +22,8 @@ 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}"
# Correct image
sed -i "s|SUBFOLDERwebsockify|/websockify|g" "${NGINX_CONFIG}"
# Enable ingress
cp /etc/nginx/sites-available/ingress.conf /etc/nginx/sites-enabled
cp "${NGINX_CONFIG}" /etc/nginx/sites-enabled