Commit 3c8c06751cab946e05785be6985c4c23b4cfbb02

Authored by Marin Jankovski
1 parent d618a5fe

Enable rack_attack by default.

config/application.rb
... ... @@ -78,7 +78,6 @@ module Gitlab
78 78 #
79 79 # config.relative_url_root = "/gitlab"
80 80  
81   - # Uncomment to enable rack attack middleware
82   - # config.middleware.use Rack::Attack
  81 + config.middleware.use Rack::Attack
83 82 end
84 83 end
... ...
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"
... ...