feat: split caddy report tls-internal into raw, computed, and global
The bare `tls-internal` key previously returned the computed value, so external tooling could not tell whether the property had been set on the app or was merely defaulting to `false`. The property is now also configurable with `--global`, the report exposes `computed-tls-internal` and `global-tls-internal` keys alongside the bare raw key, and the deploy path honors the per-app value with a fallback to the global value before the built-in default. Closes #8625.
This commit is contained in:
@@ -69,5 +69,19 @@ fn-caddy-polling-interval() {
|
||||
|
||||
fn-caddy-tls-internal() {
|
||||
declare APP="$1"
|
||||
fn-plugin-property-get-default "caddy" "$APP" "tls-internal" "false"
|
||||
fn-plugin-property-get-default "caddy" "$APP" "tls-internal" ""
|
||||
}
|
||||
|
||||
fn-caddy-computed-tls-internal() {
|
||||
declare APP="$1"
|
||||
local value
|
||||
value="$(fn-caddy-tls-internal "$APP")"
|
||||
if [[ -z "$value" ]]; then
|
||||
value="$(fn-caddy-global-tls-internal)"
|
||||
fi
|
||||
echo "$value"
|
||||
}
|
||||
|
||||
fn-caddy-global-tls-internal() {
|
||||
fn-plugin-property-get-default "caddy" "--global" "tls-internal" "false"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user