initial pass at implementing DOKKU_PROXY_PORT_MAP. closes #2239.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
source "$PLUGIN_AVAILABLE_PATH/config/functions"
|
||||
|
||||
proxy_set_cmd() {
|
||||
declare desc="enable proxy for app via command line"
|
||||
@@ -8,7 +9,13 @@ proxy_set_cmd() {
|
||||
[[ -z $2 ]] && dokku_log_fail "Please specify an app to run the command on"
|
||||
|
||||
local APP="$2"; verify_app_name "$APP"
|
||||
dokku_log_info1 "proxy:set not implemented"
|
||||
local PROXY_TYPE="$3"
|
||||
|
||||
if [[ -n "$PROXY_TYPE" ]]; then
|
||||
config_set --no-restart "$APP" DOKKU_APP_PROXY_TYPE="$PROXY_TYPE"
|
||||
else
|
||||
dokku_log_fail "Please specify a proxy type!"
|
||||
fi
|
||||
}
|
||||
|
||||
proxy_set_cmd "$@"
|
||||
|
||||
Reference in New Issue
Block a user