diff options
author | Gibheer <gibheer@gmail.com> | 2015-10-30 13:53:06 +0100 |
---|---|---|
committer | Gibheer <gibheer@gmail.com> | 2015-10-30 13:53:06 +0100 |
commit | b90b0c1191c559a60d4f30633266fc4c0a76ae4b (patch) | |
tree | 400ff3ae257ec9541c1ba4e40cf55e2fd785f066 /conf | |
parent | 31b375782b55972b4ac7719d9bd1f3fadf1874f9 (diff) | |
download | gitea-b90b0c1191c559a60d4f30633266fc4c0a76ae4b.tar.gz gitea-b90b0c1191c559a60d4f30633266fc4c0a76ae4b.zip |
move minimum key sizes to config
This moves the minimum key sizes into the config file, so that anyone
can modify the restrictions.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/app.ini | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/conf/app.ini b/conf/app.ini index 2a1a568d8e..3a8233f541 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -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 |