Fix upstream ports configuration.

This commit is contained in:
Cosmin Stroe committed 2017-08-04 02:21:31 -05:00
1 parent 65990068cb
commit 1f93169c43
4 files changed
+7 -21

No files matched your search

+1 -3
View File
@@ -219,10 +219,8 @@ nginx_build_config() {
shopt -s nullglob
local DOKKU_APP_IP_FILE
for DOKKU_APP_IP_FILE in $DOKKU_ROOT/$APP/IP.web.*; do
local DOKKU_APP_PORT_FILE="${DOKKU_APP_IP_FILE//IP/PORT}"
local DOKKU_APP_LISTENER_IP=$(< "$DOKKU_APP_IP_FILE")
local DOKKU_APP_LISTENER_PORT=$(< "$DOKKU_APP_PORT_FILE")
local DOKKU_APP_LISTENERS+="$DOKKU_APP_LISTENER_IP:$DOKKU_APP_LISTENER_PORT "
local DOKKU_APP_LISTENERS+="$DOKKU_APP_LISTENER_IP "
done
local DOKKU_APP_LISTENERS="$(echo "$DOKKU_APP_LISTENERS" | xargs)"
shopt -u nullglob