Nginx property proxy-keepalive must be an integer

This commit is contained in:
Ostap Brehin
2025-12-28 10:08:11 +00:00
parent caff2e6b96
commit c84c0208a9
2 changed files with 7 additions and 1 deletions

View File

@@ -25,6 +25,12 @@ cmd-nginx-set() {
verify_app_name "$APP"
fi
if [[ "$KEY" == "proxy-keepalive" ]] && [[ -n "$VALUE" ]]; then
if ! is_number "$VALUE"; then
dokku_log_fail "Invalid value for proxy-keepalive: must be an integer"
fi
fi
if [[ -n "$VALUE" ]]; then
dokku_log_info2_quiet "Setting ${KEY} to ${VALUE}"
fn-plugin-property-write "nginx" "$APP" "$KEY" "$VALUE"