1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-12 12:38:20 +00:00

move minimum key sizes to config

This moves the minimum key sizes into the config file, so that anyone
can modify the restrictions.
This commit is contained in:
Gibheer
2015-10-30 13:53:06 +01:00
parent 31b375782b
commit b90b0c1191
3 changed files with 18 additions and 12 deletions

View File

@@ -116,6 +116,16 @@ DISABLE_MINIMUM_KEY_SIZE_CHECK = false
; Enable captcha validation for registration
ENABLE_CAPTCHA = true
; used to filter keys which are too short
[service.minimum_key_sizes]
ED25519 = 256
ECDSA = 256
NTRU = 1087
MCE = 1702
McE = 1702
RSA = 1024
DSA = 1024
[webhook]
; Hook task queue length
QUEUE_LENGTH = 1000