feat: add global fallback for DOKKU_PROXY_PORT and DOKKU_PROXY_SSL_PORT

This commit is contained in:
lalyos
2019-11-26 12:30:51 +01:00
committed by Jose Diaz-Gonzalez
parent 5de1c298eb
commit bb176e4130
3 changed files with 17 additions and 4 deletions

View File

@@ -141,3 +141,14 @@ teardown() {
echo "status: "$status
assert_success
}
@test "(nginx-vhosts) nginx:build-config (global DOKKU_PROXY_PORT)" {
local GLOBAL_PORT=30999
run /bin/bash -c "dokku config:set --global DOKKU_PROXY_PORT=${GLOBAL_PORT}"
deploy_app
check_urls http://${TEST_APP}.dokku.me:${GLOBAL_PORT}
assert_http_success http://${TEST_APP}.dokku.me:${GLOBAL_PORT}
run /bin/bash -c "dokku config:unset --global DOKKU_PROXY_PORT"
}