summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorStefan Kalscheuer <stefan@stklcode.de>2017-07-15 16:21:51 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-07-15 22:21:51 +0800
commit0b177574c92b2f8c4a4d0d9de01ff1bf5eda06a2 (patch)
tree9b0d900298ec2054b216271c556500c25ab7ddf5 /conf
parent32f289ae3b88f0a33723fe51b808d1633cd6716a (diff)
downloadgitea-0b177574c92b2f8c4a4d0d9de01ff1bf5eda06a2.tar.gz
gitea-0b177574c92b2f8c4a4d0d9de01ff1bf5eda06a2.zip
Only show SSH clone URL if signed in (#2169) (#2170)
* Add configuration flag SSH_EXPOSE_ANONYMOUS If this flag (default True) is set to false, the SSH clone URL will only be exposed if the current user is signed in. * Default SSH exposure set to false To match GitHub and for security reasons, SSH URL exposure is disabled by default. In addition to that. minor code changes have been applied. Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de> * Add integration tests * Hide clone button neither HTTP and SSH is enabled Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
Diffstat (limited to 'conf')
-rw-r--r--conf/app.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/conf/app.ini b/conf/app.ini
index 8f04435b5f..bb0654e2e2 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -126,6 +126,8 @@ SSH_KEY_TEST_PATH =
SSH_KEYGEN_PATH = ssh-keygen
; Enable SSH Authorized Key Backup when rewriting all keys, default is true
SSH_BACKUP_AUTHORIZED_KEYS = true
+; Enable exposure of SSH clone URL to anonymous visitors, default is false
+SSH_EXPOSE_ANONYMOUS = false
; Indicate whether to check minimum key size with corresponding type
MINIMUM_KEY_SIZE_CHECK = false
; Disable CDN even in "prod" mode