feat: add global fallback for DOKKU_PROXY_PORT and DOKKU_PROXY_SSL_PORT

This commit is contained in:
lalyos authored and Jose Diaz-Gonzalez committed 2020-02-03 13:22:09 -05:00
1 parent 5de1c298eb
commit bb176e4130
3 files changed
+17 -4

No files matched your search

+11
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"
}