add more options

This commit is contained in:
2026-02-24 00:39:04 +01:00
parent feef07959c
commit 1d3f94d236
2 changed files with 13 additions and 2 deletions

View File

@@ -64,6 +64,11 @@
# support in Gitea. # support in Gitea.
# @param [String] ga_public_url_detection The method for public URL detection # @param [String] ga_public_url_detection The method for public URL detection
# in Gitea. Options are 'auto', 'legacy', and 'none'. # 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 ( class confdroid_gitea::params (
@@ -84,6 +89,9 @@ class confdroid_gitea::params (
String $ga_lfs_jwt_secret = 'ChangeMeLFSJWTSecret', String $ga_lfs_jwt_secret = 'ChangeMeLFSJWTSecret',
Boolean $ga_use_proxy_protocol = false, Boolean $ga_use_proxy_protocol = false,
String $ga_public_url_detection = 'auto', 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 # database
String $ga_db_type = 'postgres', String $ga_db_type = 'postgres',

View File

@@ -94,4 +94,7 @@ NAME = <%= @ga_instance_name %>
[oauth2] [oauth2]
JWT_SECRET = <%= @ga_jwt_secret %> JWT_SECRET = <%= @ga_jwt_secret %>
[qos]
ENABLED = <%= @ga_qos_enabled %>
MAX_WAITING = <%= @ga_qos_max_waiting %>
TARGET_WAIT_TIME = <%= @ga_qos_target_wait_time %>