Allow trusted addresses for better_errors to be set in the environment

This commit is contained in:
Tom Hughes 2018-04-15 22:22:43 +01:00
parent 4c9ec6a60c
commit 3da01218b3

View file

@ -0,0 +1,3 @@
ENV.fetch("TRUSTED_IPS", "").split.each do |ip|
BetterErrors::Middleware.allow_ip! ip
end