feat: first pass at haproxy plugin implementation

This commit is contained in:
Jose Diaz-Gonzalez
2022-08-17 18:37:32 -04:00
parent 89cf4a5e76
commit 237aae9eec
19 changed files with 587 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/haproxy-vhosts/internal-functions"
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
trigger-haproxy-vhosts-core-post-deploy() {
declare desc="haproxy-vhosts core-post-deploy plugin trigger"
declare trigger="core-post-deploy"
declare APP="$1"
local tls_internal
if [[ "$(plugn trigger proxy-type "$APP")" != "haproxy" ]]; then
return
fi
dokku_log_info1 "Routing app via haproxy"
}
trigger-haproxy-vhosts-core-post-deploy "$@"