From 3da01218b388d55369fb95faee163ab926adf924 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 15 Apr 2018 22:22:43 +0100 Subject: [PATCH] Allow trusted addresses for better_errors to be set in the environment --- config/initializers/better_errors.rb | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 config/initializers/better_errors.rb diff --git a/config/initializers/better_errors.rb b/config/initializers/better_errors.rb new file mode 100644 index 000000000..50f278c2d --- /dev/null +++ b/config/initializers/better_errors.rb @@ -0,0 +1,3 @@ +ENV.fetch("TRUSTED_IPS", "").split.each do |ip| + BetterErrors::Middleware.allow_ip! ip +end -- 2.39.5