From ccb9ca3226dbcef31f1a5b92fb829235bfcbc5ea Mon Sep 17 00:00:00 2001 From: Marcel Date: Sat, 24 Apr 2021 15:20:03 +0200 Subject: [PATCH] Fixes #205 - Automatically remove IPv6 listen directive (#207) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixes #205 - Automatically remove IPv6 listen directive * Update docker-entrypoint.sh Co-authored-by: André Bauer --- containers/zammad/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/zammad/docker-entrypoint.sh b/containers/zammad/docker-entrypoint.sh index 9cc0c6c..2c0e850 100755 --- a/containers/zammad/docker-entrypoint.sh +++ b/containers/zammad/docker-entrypoint.sh @@ -121,7 +121,7 @@ if [ "$1" = 'zammad-nginx' ]; then check_zammad_ready # configure nginx - sed -e "s#listen .*#listen ${NGINX_PORT};#g" \ + sed -e "s#\(listen\)\(.*\)80#\1\2${NGINX_PORT}#g" \ -e "s#proxy_set_header X-Forwarded-Proto .*;#proxy_set_header X-Forwarded-Proto ${NGINX_SERVER_SCHEME};#g" \ -e "s#server .*:3000#server ${ZAMMAD_RAILSSERVER_HOST}:${ZAMMAD_RAILSSERVER_PORT}#g" \ -e "s#server .*:6042#server ${ZAMMAD_WEBSOCKET_HOST}:${ZAMMAD_WEBSOCKET_PORT}#g" \