mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 12:54:04 +02:00
Update 90-ingress.sh
This commit is contained in:
@@ -4,15 +4,10 @@
|
|||||||
# nginx Path
|
# nginx Path
|
||||||
NGINX_CONFIG=/etc/nginx/sites-available/ingress.conf
|
NGINX_CONFIG=/etc/nginx/sites-available/ingress.conf
|
||||||
|
|
||||||
# user passed env vars
|
|
||||||
CPORT="${CUSTOM_PORT:-3000}"
|
|
||||||
CHPORT="${CUSTOM_HTTPS_PORT:-3001}"
|
|
||||||
CUSER="${CUSTOM_USER:-abc}"
|
|
||||||
|
|
||||||
# Copy template
|
# Copy template
|
||||||
cp /defaults/default.conf ${NGINX_CONFIG}
|
cp /defaults/default.conf ${NGINX_CONFIG}
|
||||||
# Remove ssl part
|
# Remove ssl part
|
||||||
awk -v n=4 '/server/{n--}; n > 0' ${NGINX_CONFIG} > ${NGINX_CONFIG}
|
awk -i inplace -v n=4 '/server/{n--}; n > 0' ${NGINX_CONFIG}
|
||||||
# Remove ipv6
|
# Remove ipv6
|
||||||
sed -i '/listen \[::\]/d' ${NGINX_CONFIG}
|
sed -i '/listen \[::\]/d' ${NGINX_CONFIG}
|
||||||
# Add ingress parameters
|
# Add ingress parameters
|
||||||
|
|||||||
Reference in New Issue
Block a user