summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
author无闻 <u@gogs.io>2015-11-01 12:39:12 -0500
committer无闻 <u@gogs.io>2015-11-01 12:39:12 -0500
commit50058b3c6d05d38d98cddeba2ad353f8138f1234 (patch)
tree6b41392ec15dac3e1a6d75fc609be57341996068 /conf
parentb0226a1d05616ac7fdbff4f8a956990654972798 (diff)
parentb90b0c1191c559a60d4f30633266fc4c0a76ae4b (diff)
downloadgitea-50058b3c6d05d38d98cddeba2ad353f8138f1234.tar.gz
gitea-50058b3c6d05d38d98cddeba2ad353f8138f1234.zip
Merge pull request #1871 from Gibheer/config_minimum_key_sizes
move minimum key sizes to config
Diffstat (limited to 'conf')
-rw-r--r--conf/app.ini10
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