Commit 3c8c06751cab946e05785be6985c4c23b4cfbb02
1 parent
d618a5fe
Exists in
master
and in
4 other branches
Enable rack_attack by default.
Showing
3 changed files
with
3 additions
and
12 deletions
Show diff stats
config/application.rb
config/initializers/rack_attack.rb.example
1 | -# To enable rack-attack for your GitLab instance do the following: | |
2 | -# 1. In config/application.rb find and uncomment the following line: | |
3 | -# config.middleware.use Rack::Attack | |
4 | -# 2. Rename this file to rack_attack.rb | |
5 | -# 3. Review the paths_to_be_protected and add any other path you need protecting | |
6 | -# 4. Restart GitLab instance | |
1 | +# 1. Rename this file to rack_attack.rb | |
2 | +# 2. Review the paths_to_be_protected and add any other path you need protecting | |
7 | 3 | # |
8 | 4 | |
9 | 5 | paths_to_be_protected = [ | ... | ... |
doc/install/installation.md
... | ... | @@ -227,10 +227,6 @@ You can change `6-2-stable` to `master` if you want the *bleeding edge* version, |
227 | 227 | # Copy the example Rack attack config |
228 | 228 | sudo -u git -H cp config/initializers/rack_attack.rb.example config/initializers/rack_attack.rb |
229 | 229 | |
230 | - # Enable rack attack middleware | |
231 | - # Find and uncomment the line 'config.middleware.use Rack::Attack' | |
232 | - sudo -u git -H editor config/application.rb | |
233 | - | |
234 | 230 | # Configure Git global settings for git user, useful when editing via web |
235 | 231 | # Edit user.email according to what is set in gitlab.yml |
236 | 232 | sudo -u git -H git config --global user.name "GitLab" | ... | ... |