index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
conf
/
app.ini
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
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/app.ini
parent
31b375782b55972b4ac7719d9bd1f3fadf1874f9
(
diff
)
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/app.ini')
-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 2a1a568d..3a8233f5 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