Allow trusted addresses for better_errors to be set in the environment
This commit is contained in:
parent
4c9ec6a60c
commit
3da01218b3
1 changed files with 3 additions and 0 deletions
3
config/initializers/better_errors.rb
Normal file
3
config/initializers/better_errors.rb
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
ENV.fetch("TRUSTED_IPS", "").split.each do |ip|
|
||||||
|
BetterErrors::Middleware.allow_ip! ip
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue