aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/environment.rb3
-rw-r--r--config/general.yml-example6
2 files changed, 9 insertions, 0 deletions
diff --git a/config/environment.rb b/config/environment.rb
index 17ded987e..f2164f1c8 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -149,3 +149,6 @@ require 'i18n_fixes.rb'
require 'rack_quote_monkeypatch.rb'
require 'world_foi_websites.rb'
require 'alaveteli_external_command.rb'
+
+ExceptionNotification::Notifier.sender_address = MySociety::Config::get('EXCEPTION_NOTIFICATIONS_FROM')
+ExceptionNotification::Notifier.exception_recipients = MySociety::Config::get('EXCEPTION_NOTIFICATIONS_TO')
diff --git a/config/general.yml-example b/config/general.yml-example
index be39e5b3c..a0d9dc705 100644
--- a/config/general.yml-example
+++ b/config/general.yml-example
@@ -131,3 +131,9 @@ FORWARD_NONBOUNCE_RESPONSES_TO: user-support@localhost
# instead.
HTML_TO_PDF_COMMAND: /usr/local/bin/wkhtmltopdf-amd64
+# Exception notifications
+EXCEPTION_NOTIFICATIONS_FROM: do-not-reply-to-this-address@example.com
+EXCEPTION_NOTIFICATIONS_TO:
+- robin@example.org
+- seb@example.org
+