Merge pull request #2519 from tkalus/tk-2474-dup_nginx_server_name
Fix for #2474
This commit is contained in:
@@ -272,7 +272,14 @@ nginx_build_config() {
|
|||||||
else
|
else
|
||||||
local SSL_VHOSTS=$(< "$DOKKU_ROOT/HOSTNAME")
|
local SSL_VHOSTS=$(< "$DOKKU_ROOT/HOSTNAME")
|
||||||
fi
|
fi
|
||||||
local SSL_SERVER_NAME=$(echo "$SSL_VHOSTS" | xargs)
|
local SSL_SERVER_NAME
|
||||||
|
local host
|
||||||
|
for host in $SSL_VHOSTS; do
|
||||||
|
# SSL_SERVER_NAME should only contain items not in NOSSL_SERVER_NAME
|
||||||
|
if [[ ! $NOSSL_SERVER_NAME =~ (^|[[:space:]])$host($|[[:space:]]) ]]; then
|
||||||
|
SSL_SERVER_NAME="${host}${SSL_SERVER_NAME:+ $SSL_SERVER_NAME}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local NGINX_VERSION="$(nginx -v 2>&1 | cut -d'/' -f 2)"
|
local NGINX_VERSION="$(nginx -v 2>&1 | cut -d'/' -f 2)"
|
||||||
|
|||||||
Reference in New Issue
Block a user