Update 90-ingress.sh

This commit is contained in:
Alexandre
2023-09-02 18:23:11 +02:00
committed by GitHub
parent a67c853248
commit a6d01ec31b

View File

@@ -12,7 +12,7 @@ CUSER="${CUSTOM_USER:-abc}"
# Copy template
cp /defaults/default.conf ${NGINX_CONFIG}
# Remove ssl part
awk -v n=4 '/server/{n--}; n > 0' ${NGINX_CONFIG}
awk -v n=4 '/server/{n--}; n > 0' ${NGINX_CONFIG} > ${NGINX_CONFIG}
# Remove ipv6
sed -i '/listen \[::\]/d' ${NGINX_CONFIG}
# Add ingress parameters