summaryrefslogtreecommitdiff
path: root/config/gitlab.yml.example
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-12-15 18:47:26 +0100
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-12-15 18:57:42 +0100
commit62ea02740d2fff83d636eb659eb5f80dbf1bd888 (patch)
treeda939d1010ebcd376c9ad9e1bf66acfbbb7e774e /config/gitlab.yml.example
parent7512016d51feb6c02c3a0322325564b6b7f5ad9c (diff)
downloadgitlab-ce-62ea02740d2fff83d636eb659eb5f80dbf1bd888.tar.gz
Block Git HTTP Basic Auth after 10 failed attempts
Diffstat (limited to 'config/gitlab.yml.example')
-rw-r--r--config/gitlab.yml.example11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/gitlab.yml.example b/config/gitlab.yml.example
index 7b4c180fccc..b474063505f 100644
--- a/config/gitlab.yml.example
+++ b/config/gitlab.yml.example
@@ -298,6 +298,17 @@ production: &base
# ![Company Logo](http://www.companydomain.com/logo.png)
# [Learn more about CompanyName](http://www.companydomain.com/)
+ rack_attack:
+ git_basic_auth:
+ # Limit the number of Git HTTP authentication attempts per IP
+ # maxretry: 10
+ #
+ # Reset the auth attempt counter per IP after 60 seconds
+ # findtime: 60
+ #
+ # Ban an IP for one hour (3600s) after too many auth attempts
+ # bantime: 3600
+
development:
<<: *base