aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/general.yml-example9
-rw-r--r--lib/configuration.rb2
2 files changed, 11 insertions, 0 deletions
diff --git a/config/general.yml-example b/config/general.yml-example
index 6e223406e..1fc0f668d 100644
--- a/config/general.yml-example
+++ b/config/general.yml-example
@@ -172,6 +172,15 @@ VARNISH_HOST: localhost
# Adding a value here will enable Google Analytics on all non-admin pages for non-admin users.
GA_CODE: ''
+# We need to add the WDTK survey variables here, or else the deployment
+# system will cry.
+SURVEY_SECRET: ''
+# Blank this out if the survey host is unavailable - people going to the
+# survey URL will get a message that the survey is unavailable
+SURVEY_URL: ''
+# Set this to false if you don't want survey emails to be sent
+SEND_SURVEY_MAILS: true
+
# If you want to override *all* the public body request emails with your own
# email so that request emails that would normally go to the public body
# go to you, then uncomment below and fill in your email.
diff --git a/lib/configuration.rb b/lib/configuration.rb
index d525bf712..077155026 100644
--- a/lib/configuration.rb
+++ b/lib/configuration.rb
@@ -62,6 +62,8 @@ module AlaveteliConfiguration
:SITE_NAME => 'Alaveteli',
:SKIP_ADMIN_AUTH => false,
:SPECIAL_REPLY_VERY_LATE_AFTER_DAYS => 60,
+ :SURVEY_URL => '',
+ :SEND_SURVEY_MAILS => true,
:THEME_BRANCH => false,
:THEME_URL => "",
:THEME_URLS => [],