Commit 3c8c0675 authored by Marin Jankovski's avatar Marin Jankovski

Enable rack_attack by default.

parent d618a5fe
...@@ -78,7 +78,6 @@ module Gitlab ...@@ -78,7 +78,6 @@ module Gitlab
# #
# config.relative_url_root = "/gitlab" # config.relative_url_root = "/gitlab"
# Uncomment to enable rack attack middleware config.middleware.use Rack::Attack
# config.middleware.use Rack::Attack
end end
end end
# To enable rack-attack for your GitLab instance do the following: # 1. Rename this file to rack_attack.rb
# 1. In config/application.rb find and uncomment the following line: # 2. Review the paths_to_be_protected and add any other path you need protecting
# config.middleware.use Rack::Attack
# 2. Rename this file to rack_attack.rb
# 3. Review the paths_to_be_protected and add any other path you need protecting
# 4. Restart GitLab instance
# #
paths_to_be_protected = [ paths_to_be_protected = [
......
...@@ -227,10 +227,6 @@ You can change `6-2-stable` to `master` if you want the *bleeding edge* version, ...@@ -227,10 +227,6 @@ You can change `6-2-stable` to `master` if you want the *bleeding edge* version,
# Copy the example Rack attack config # Copy the example Rack attack config
sudo -u git -H cp config/initializers/rack_attack.rb.example config/initializers/rack_attack.rb sudo -u git -H cp config/initializers/rack_attack.rb.example config/initializers/rack_attack.rb
# Enable rack attack middleware
# Find and uncomment the line 'config.middleware.use Rack::Attack'
sudo -u git -H editor config/application.rb
# Configure Git global settings for git user, useful when editing via web # Configure Git global settings for git user, useful when editing via web
# Edit user.email according to what is set in gitlab.yml # Edit user.email according to what is set in gitlab.yml
sudo -u git -H git config --global user.name "GitLab" sudo -u git -H git config --global user.name "GitLab"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment