diff --git a/manifests/params.pp b/manifests/params.pp index 7de37f4..7b7b2dc 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -64,6 +64,11 @@ # support in Gitea. # @param [String] ga_public_url_detection The method for public URL detection # in Gitea. Options are 'auto', 'legacy', and 'none'. +# @param [Boolean] ga_qos_enabled Whether to enable QoS support in Gitea. +# @param [String] ga_qos_max_waiting The maximum number of waiting requests +# for QoS in Gitea. +# @param [String] ga_qos_target_wait_time The target wait time for QoS in +# Gitea. ############################################################################## class confdroid_gitea::params ( @@ -84,7 +89,10 @@ class confdroid_gitea::params ( String $ga_lfs_jwt_secret = 'ChangeMeLFSJWTSecret', Boolean $ga_use_proxy_protocol = false, String $ga_public_url_detection = 'auto', - + Boolean $ga_qos_enabled = true, + String $ga_qos_max_waiting = '100', + String $ga_qos_target_wait_time = '250ms', + # database String $ga_db_type = 'postgres', String $ga_db_host = 'localhost', diff --git a/templates/app.ini.erb b/templates/app.ini.erb index ecaba69..252d987 100644 --- a/templates/app.ini.erb +++ b/templates/app.ini.erb @@ -94,4 +94,7 @@ NAME = <%= @ga_instance_name %> [oauth2] JWT_SECRET = <%= @ga_jwt_secret %> - +[qos] +ENABLED = <%= @ga_qos_enabled %> +MAX_WAITING = <%= @ga_qos_max_waiting %> +TARGET_WAIT_TIME = <%= @ga_qos_target_wait_time %>