Commit 3b590dbe authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch 'rs-config-parity-ee' into 'master'

Finish up config CE-EE parity

Closes #4946

See merge request gitlab-org/gitlab-ee!14733
parents c693e9a6 f343345f
# This patches ActiveRecord so indexes for binary columns created # This patches ActiveRecord so indexes for binary columns created using the
# using the MySQL adapter apply a length of 20. Otherwise MySQL can't create an # MySQL adapter apply a length of 20. Otherwise MySQL can't create an index on
# index on binary columns. # binary columns.
module MysqlSetLengthForBinaryIndexAndIgnorePostgresOptionsForSchema module MysqlSetLengthForBinaryIndexAndIgnorePostgresOptionsForSchema
# This method is used in Rails 5 schema loading as t.index # This method is used in Rails 5 schema loading as t.index
......
...@@ -43,8 +43,6 @@ class Rack::Attack ...@@ -43,8 +43,6 @@ class Rack::Attack
end end
class Request class Request
prepend ::EE::Gitlab::Rack::Attack::Request # rubocop: disable Cop/InjectEnterpriseEditionModule
def unauthenticated? def unauthenticated?
!authenticated_user_id([:api, :rss, :ics]) !authenticated_user_id([:api, :rss, :ics])
end end
...@@ -70,3 +68,5 @@ class Rack::Attack ...@@ -70,3 +68,5 @@ class Rack::Attack
end end
end end
end end
::Rack::Attack::Request.prepend(::EE::Gitlab::Rack::Attack::Request)
...@@ -137,4 +137,3 @@ after_fork do |server, worker| ...@@ -137,4 +137,3 @@ after_fork do |server, worker|
# addr = "127.0.0.1:#{9293 + worker.nr}" # addr = "127.0.0.1:#{9293 + worker.nr}"
# server.listen(addr, :tries => -1, :delay => 5, :tcp_nopush => true) # server.listen(addr, :tries => -1, :delay => 5, :tcp_nopush => true)
end end
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