Add missing [limits] keys to default configuration.

This commit is contained in:
Catherine
2025-11-05 22:40:48 +00:00
parent 47a658ac03
commit 9b19eeae82
2 changed files with 3 additions and 1 deletions

View File

@@ -44,6 +44,8 @@ git-large-object-threshold = "1M"
max-symlink-depth = 16
update-timeout = "60s"
max-heap-size-ratio = 0.5 # * RAM_size
forbidden-domains = []
# allowed-repository-url-prefixes = <nil>
[observability]
slow-response-threshold = "500ms"

View File

@@ -105,7 +105,7 @@ type LimitsConfig struct {
// Soft limit on Go heap size, expressed as a fraction of total available RAM.
MaxHeapSizeRatio float64 `toml:"max-heap-size-ratio" default:"0.5"`
// List of domains unconditionally forbidden for uploads.
ForbiddenDomains []string `toml:"forbidden-domains"`
ForbiddenDomains []string `toml:"forbidden-domains" default:"[]"`
// List of allowed repository URL prefixes. Setting this option prohibits uploading archives.
AllowedRepositoryURLPrefixes []string `toml:"allowed-repository-url-prefixes"`
}