From 0399fb07cc0480968bcd40b5f66ecef212fa94a3 Mon Sep 17 00:00:00 2001 From: pezholio Date: Fri, 31 May 2024 15:35:48 +0100 Subject: [PATCH] Allow Better Errors to work with Docker I noticed that, in some circumstances, error traces were showing in plaintext when using Whitehall in Docker. After some research I found [this issue][1], the solution for which allows the host machine, Docker and Better Errors to play together nicely! [1]: https://github.com/BetterErrors/better_errors/issues/270 --- 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 00000000000..bb3c5ac1d36 --- /dev/null +++ b/config/initializers/better_errors.rb @@ -0,0 +1,3 @@ +if Rails.env.development? + BetterErrors::Middleware.allow_ip! "0.0.0.0/0" +end