From 416b4996706d570b05ce91ef6e34ef117a78053c Mon Sep 17 00:00:00 2001 From: Alex Quick Date: Sat, 21 Jan 2017 21:17:52 -0500 Subject: [PATCH] [nginx-proxy] remove trailing spaces from PROXY_PORT_MAP this plugin used to rely on the fact that config supressed trailing spaces --- plugins/nginx-vhosts/functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/nginx-vhosts/functions b/plugins/nginx-vhosts/functions index 4792550df..35521f66a 100755 --- a/plugins/nginx-vhosts/functions +++ b/plugins/nginx-vhosts/functions @@ -302,6 +302,8 @@ nginx_build_config() { SPDY_SUPPORTED="$(is_spdy_enabled "$NGINX_VERSION")" HTTP2_SUPPORTED="$(is_http2_enabled "$NGINX_VERSION")" + PROXY_PORT_MAP=$(echo "$PROXY_PORT_MAP" | xargs) # trailing spaces mess up default template + eval "$(config_export app "$APP")" local SIGIL_PARAMS=(-f $NGINX_TEMPLATE APP="$APP" DOKKU_ROOT="$DOKKU_ROOT" NOSSL_SERVER_NAME="$NOSSL_SERVER_NAME"