summaryrefslogtreecommitdiffstats
path: root/conf/app.ini
diff options
context:
space:
mode:
authorDan Magnus Lindvall <magnus@dnmgns.com>2017-06-28 03:35:35 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-06-28 09:35:35 +0800
commit79daf31058a6de8f3763366b586a99bb4b8e632e (patch)
tree9907118748f741c2c9c4bd852d6be8539834dc36 /conf/app.ini
parenta037cd81ff8fc1a1ed9a7efae6b2cd5bc4bedb86 (diff)
downloadgitea-79daf31058a6de8f3763366b586a99bb4b8e632e.tar.gz
gitea-79daf31058a6de8f3763366b586a99bb4b8e632e.zip
Setting to disable authorized_keys backup (#1856)
* Add setting to disable authorized_keys backup when rewriting public keys Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Update default value to comply with documentation Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Use tmp-file instead of bak-file for saving manually added keys. Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change casing Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change casing and build bakpath with sprintf only Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Only close file once Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Do not modify calcFingerprint Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Fix casing Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change style from disable to enable Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change name, just SSH_BACKUP_AUTHORIZED_KEYS Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Do not check for directory existence if backup is disabled Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
Diffstat (limited to 'conf/app.ini')
-rw-r--r--conf/app.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/conf/app.ini b/conf/app.ini
index 2f9c3cdb11..8f04435b5f 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -124,6 +124,8 @@ SSH_ROOT_PATH =
SSH_KEY_TEST_PATH =
; Path to ssh-keygen, default is 'ssh-keygen' and let shell find out which one to call.
SSH_KEYGEN_PATH = ssh-keygen
+; Enable SSH Authorized Key Backup when rewriting all keys, default is true
+SSH_BACKUP_AUTHORIZED_KEYS = true
; Indicate whether to check minimum key size with corresponding type
MINIMUM_KEY_SIZE_CHECK = false
; Disable CDN even in "prod" mode