mirror of
https://github.com/dokku/dokku.git
synced 2026-07-10 20:40:43 +02:00
The `<plugin>-global-<property>` keys in `:report` output returned the resolved value with the built-in default substituted in, so external tooling could not distinguish a property that had been set globally to the default from one that had never been set. The bare keys for caddy, haproxy, and traefik global-only properties had the same shape. The `global-<property>` keys now hold the raw stored value and are empty when nothing has been set, and a new `computed-<property>` key holds the effective value used at runtime, falling back through the per-app value (where one exists), the global value, and the built-in default. The bare global-only keys for the three proxy plugins are removed in favor of the raw/computed pair. Closes #8631.
22 lines
546 B
Bash
Executable File
22 lines
546 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
source "$PLUGIN_AVAILABLE_PATH/haproxy-vhosts/internal-functions"
|
|
|
|
trigger-haproxy-vhosts-certs-force() {
|
|
declare desc="haproxy-vhosts certs-force plugin trigger"
|
|
declare trigger="certs-force"
|
|
declare APP="$1"
|
|
|
|
if [[ "$(plugn trigger proxy-type "$APP")" != "haproxy" ]]; then
|
|
return
|
|
fi
|
|
|
|
if [[ -n "$(fn-haproxy-computed-letsencrypt-email)" ]]; then
|
|
echo true
|
|
fi
|
|
}
|
|
|
|
trigger-haproxy-vhosts-certs-force "$@"
|