chore: remove deprecated nginx commands

This commit is contained in:
Jose Diaz-Gonzalez
2023-02-12 13:20:45 -05:00
parent 954b2d9d34
commit f84a650849
13 changed files with 67 additions and 90 deletions

View File

@@ -1,24 +0,0 @@
#!/usr/bin/env bash
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
cmd-nginx-build-config() {
declare desc="build nginx config to proxy app containers from command line"
declare cmd="nginx:build-config"
[[ "$1" == "$cmd" ]] && shift 1
declare APP="$1"
verify_app_name "$APP"
dokku_log_warn "Deprecated: Please use proxy:build-config"
local PROXY_APP_TYPE
PROXY_APP_TYPE="$(plugn trigger proxy-type "$APP")"
if [[ "$PROXY_APP_TYPE" == "nginx" ]]; then
plugn trigger proxy-build-config "$APP"
else
dokku_log_fail "Configured proxy for ${APP} is ${PROXY_APP_TYPE}"
fi
}
cmd-nginx-build-config "$@"