Nginx property proxy-keepalive must be an integer

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

No files matched your search

+6
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"