Allow BetterErrors REPL to be enabled

This allows the BetterErrors REPL to be available
when your GitLab instance is listening on
something _other_ than localhost.
This commit is contained in:
Ash McKenzie 2019-06-03 12:13:00 +10:00
parent 31c32db2a9
commit 3f8ccac032
No known key found for this signature in database
GPG Key ID: A1253B4953E8D3E6
1 changed files with 3 additions and 0 deletions

View File

@ -47,4 +47,7 @@ Rails.application.configure do
config.assets.quiet = true
config.allow_concurrency = defined?(::Puma)
# BetterErrors live shell (REPL) on every stack frame
BetterErrors::Middleware.allow_ip!("127.0.0.1/0")
end