From 6fe3d913acce973e5b5c08673ba92fdb0b479436 Mon Sep 17 00:00:00 2001
From: Louise Crow Example: Example: Example:
+ The default theme is the "Alaveteli" theme. This gets installed automatically when
+ Example:
+ Warning: this is slow — don't use in production!
+ Examples: Example: Example: Examples: Examples:
+
+ Example: Example:
- Warning: this is slow — don't use in production!
-
+ This is useful for creating the initial admin users for your site:
+ NEW_RESPONSE_REMINDER_AFTER_DAYS
+
AUTHORITY_MUST_RESPOND
MAX_REQUESTS_PER_USER_PER_DAY
OVERRIDE_ALL_PUBLIC_BODY_REQUEST_EMAILS
ALLOW_BATCH_REQUESTS
@@ -829,6 +830,25 @@ EXCEPTION_NOTIFICATIONS_TO:
+
+ AUTHORITY_MUST_RESPOND
+ true
if authorities must respond by law. Set to false
otherwise. It defaults to true
. At the moment this just controls the display of some UI text telling users that the authority must respond to them by law.
+
+
+ AUTHORITY_MUST_RESPOND: true
+ MAX_REQUESTS_PER_USER_PER_DAY
OVERRIDE_ALL_PUBLIC_BODY_REQUEST_EMAILS
ALLOW_BATCH_REQUESTS
PUBLIC_BODY_LIST_FALLBACK_TO_DEFAULT_LOCALE
-
CACHE_FRAGMENTS
### External public services:
@@ -127,6 +126,7 @@ indentation correct. If in doubt, look at the examples already in the file, and
USE_MAILCATCHER_IN_DEVELOPMENT
USE_GHOSTSCRIPT_COMPRESSION
HTML_TO_PDF_COMMAND
+
CACHE_FRAGMENTS
---
@@ -190,67 +190,222 @@ indentation correct. If in doubt, look at the examples already in the file, and
ISO_COUNTRY_CODE
+ FORCE_REGISTRATION_ON_NEW_REQUEST
ISO_COUNTRY_CODE: GB
+ FORCE_REGISTRATION_ON_NEW_REQUEST: false
TIME_ZONE
+ THEME_URLS
rails-post-deploy
script). The earlier in the list means
+ the templates have a higher priority.
TIME_ZONE: Australia/Sydney
+
+THEME_URLS:
+ - 'git://github.com/mysociety/alavetelitheme.git'
+
BLOG_FEED
+ THEME_BRANCH
rails-post-deploy
installs the themes,
+ it will try the theme branch first, but only if you've set THEME_BRANCH
+ to be true. If the branch doesn't exist it will fall back to using a tagged version
+ specific to your installed alaveteli version, and if that doesn't exist it will
+ back to master
.
+ rails-post-deploy
runs.
+
BLOG_FEED: 'https://www.mysociety.org/category/projects/whatdotheyknow/feed/'
+ THEME_BRANCH: false
TWITTER_USERNAME
- TWITTER_WIDGET_ID
+ FRONTPAGE_PUBLICBODY_EXAMPLES
short_names
.
+ If you want more than one, separate them with semicolons.
+ Comment this out if you want this to be auto-generated.
+
+ TWITTER_USERNAME: WhatDoTheyKnow
+ FRONTPAGE_PUBLICBODY_EXAMPLES: 'tgq'
TWITTER_WIDGET_ID: '833549204689320031'
+ FRONTPAGE_PUBLICBODY_EXAMPLES: 'tgq;foo;bar'
+ # FRONTPAGE_PUBLICBODY_EXAMPLES:
+ PUBLIC_BODY_STATISTICS_PAGE
&
+ MINIMUM_REQUESTS_FOR_STATISTICS
+ /body_statistics
).
+ The page will only consider public bodies that have had at least the number of requests
+ set by MINIMUM_REQUESTS_FOR_STATISTICS.
+
+
+
+ PUBLIC_BODY_STATISTICS_PAGE: false
+ MINIMUM_REQUESTS_FOR_STATISTICS: 50
+ RESPONSIVE_STYLING
+
+
+ RESPONSIVE_STYLING: true
+ READ_ONLY
+
+
+
+
+ READ_ONLY: ''
+
+
+ READ_ONLY: 'The site is not currently accepting requests while we move the server.'
+
+ STAGING_SITE
+ rails-post-deploy
+ script will create the file config/rails_env.rb
file to force
+ Rails into production environment.
+
+
+ STAGING_SITE: 1
+ STAGING_SITE: 0
+ ISO_COUNTRY_CODE
+
+
+ ISO_COUNTRY_CODE: GB
+ TIME_ZONE
+
+
TIME_ZONE: Australia/Sydney
FRONTPAGE_PUBLICBODY_EXAMPLES
+ ADMIN_USERNAME
+ &
+ ADMIN_PASSWORD
+
+ DISABLE_EMERGENCY_USER
short_names
.
- If you want more than one, separate them with semicolons.
- Comment this out if you want this to be auto-generated.
-
+
+
+ For details of this process, see + creating + a superuser account. +
Examples:
FRONTPAGE_PUBLICBODY_EXAMPLES: 'tgq'
+ ADMIN_USERNAME: 'adminxxxx'
FRONTPAGE_PUBLICBODY_EXAMPLES: 'tgq;foo;bar'
+ ADMIN_PASSWORD: 'passwordx'
# FRONTPAGE_PUBLICBODY_EXAMPLES:
+ DISABLE_EMERGENCY_USER: false
THEME_URLS
+ SKIP_ADMIN_AUTH
rails-post-deploy
script). The earlier in the list means
- the templates have a higher priority.
+ Set this to true, and the admin interface will be available to anonymous users.
+ Obviously, you should not set this to be true in production environments.
Example:
-THEME_URLS: - - 'git://github.com/mysociety/alavetelitheme.git' -+
SKIP_ADMIN_AUTH: false
THEME_BRANCH
+ INCOMING_EMAIL_DOMAIN
rails-post-deploy
installs the themes,
- it will try the theme branch first, but only if you've set THEME_BRANCH
- to be true. If the branch doesn't exist it will fall back to using a tagged version
- specific to your installed alaveteli version, and if that doesn't exist it will
- back to master
.
-
- The default theme is the "Alaveteli" theme. This gets installed automatically when
- rails-post-deploy
runs.
-
Example:
THEME_BRANCH: false
+ INCOMING_EMAIL_DOMAIN: 'localhost'
+ INCOMING_EMAIL_DOMAIN: 'foifa.com'
FORCE_REGISTRATION_ON_NEW_REQUEST
- Example:
-FORCE_REGISTRATION_ON_NEW_REQUEST: false
- INCOMING_EMAIL_DOMAIN
- Example:
-INCOMING_EMAIL_DOMAIN: 'localhost'
- INCOMING_EMAIL_DOMAIN: 'foifa.com'
- INCOMING_EMAIL_PREFIX
+ INCOMING_EMAIL_PREFIX
INCOMING_EMAIL_SECRET
ADMIN_USERNAME
- &
- ADMIN_PASSWORD
- DISABLE_EMERGENCY_USER
- - This is useful for creating the initial admin users for your site: -
- For details of this process, see - creating - a superuser account. -
-Examples:
-ADMIN_USERNAME: 'adminxxxx'
- ADMIN_PASSWORD: 'passwordx'
- DISABLE_EMERGENCY_USER: false
- SKIP_ADMIN_AUTH
- Example:
-SKIP_ADMIN_AUTH: false
- CONTACT_EMAIL
&
@@ -607,156 +675,110 @@ THEME_URLS:
COOKIE_STORE_SESSION_SECRET
+ EXCEPTION_NOTIFICATIONS_FROM
&
+ EXCEPTION_NOTIFICATIONS_TO
Example:
+Examples:
COOKIE_STORE_SESSION_SECRET: 'uIngVC238Jn9NsaQizMNf89pliYmDBFugPjHS2JJmzOp8'
+ +EXCEPTION_NOTIFICATIONS_FROM: do-not-reply-to-this-address@example.com + +EXCEPTION_NOTIFICATIONS_TO: + - robin@example.com + - seb@example.com +
READ_ONLY
+ FORWARD_NONBOUNCE_RESPONSES_TO
Examples:
+Example:
- READ_ONLY: ''
-
-
- READ_ONLY: 'The site is not currently accepting requests while we move the server.'
-
+ FORWARD_NONBOUNCE_RESPONSES_TO: user-support@example.com
STAGING_SITE
+ MTA_LOG_PATH
rails-post-deploy
- script will create the file config/rails_env.rb
file to force
- Rails into production environment.
+ Path to your exim or postfix log files that will get sucked up
+ by script/load-mail-server-logs
.
Examples:
+Example:
- STAGING_SITE: 1
-
- STAGING_SITE: 0
-
MTA_LOG_PATH: '/var/log/exim4/exim-mainlog-*'
RECAPTCHA_PUBLIC_KEY
&
- RECAPTCHA_PRIVATE_KEY
+ MTA_LOG_TYPE
Examples:
+Example:
RECAPTCHA_PUBLIC_KEY: '7HoPjGBBBBBBBBBkmj78HF9PjjaisQ893'
- RECAPTCHA_PRIVATE_KEY: '7HjPjGBBBBBCBBBpuTy8a33sgnGG7A'
+ MTA_LOG_TYPE: "exim"
NEW_RESPONSE_REMINDER_AFTER_DAYS
+ COOKIE_STORE_SESSION_SECRET
Example:
NEW_RESPONSE_REMINDER_AFTER_DAYS: [3, 10, 24]
+ COOKIE_STORE_SESSION_SECRET: 'uIngVC238Jn9NsaQizMNf89pliYmDBFugPjHS2JJmzOp8'
DEBUG_RECORD_MEMORY
+ RECAPTCHA_PUBLIC_KEY
&
+ RECAPTCHA_PRIVATE_KEY
Example:
+Examples:
DEBUG_RECORD_MEMORY: false
+ RECAPTCHA_PUBLIC_KEY: '7HoPjGBBBBBBBBBkmj78HF9PjjaisQ893'
USE_GHOSTSCRIPT_COMPRESSION
- Example:
-USE_GHOSTSCRIPT_COMPRESSION: true
+ RECAPTCHA_PRIVATE_KEY: '7HjPjGBBBBBCBBBpuTy8a33sgnGG7A'
GAZE_URL
FORWARD_NONBOUNCE_RESPONSES_TO
+ GA_CODE
(GA=Google Analytics)
Example:
+Examples:
FORWARD_NONBOUNCE_RESPONSES_TO: user-support@example.com
+ GA_CODE: ''
+ GA_CODE: 'AB-8222142-14'
HTML_TO_PDF_COMMAND
+ UTILITY_SEARCH_PATH
Example:
HTML_TO_PDF_COMMAND: /usr/local/bin/wkhtmltopdf-amd64
+ UTILITY_SEARCH_PATH: ["/usr/bin", "/usr/local/bin"]
EXCEPTION_NOTIFICATIONS_FROM
&
- EXCEPTION_NOTIFICATIONS_TO
+ SHARED_FILES_PATH
files
directory, the cache
directory and the
+ generated graphs such as public/foi-live-creation.png
. If you're
+ installing Alaveteli in such a setup then set SHARED_FILES_PATH to
+ the directory you're keeping these files under. Otherwise, leave it blank.
Examples:
+Example:
-EXCEPTION_NOTIFICATIONS_FROM: do-not-reply-to-this-address@example.com - -EXCEPTION_NOTIFICATIONS_TO: - - robin@example.com - - seb@example.com -+
SHARED_FILES_PATH: ''
AUTHORITY_MUST_RESPOND
+ SHARED_FILES
&
+ SHARED_DIRECTORIES
true
if authorities must respond by law. Set to false
otherwise. It defaults to true
. At the moment this just controls the display of some UI text telling users that the authority must respond to them by law.
+ If you have SHARED_FILES_PATH set, then these options list the files
+ and directories that are shared; i.e. those to which the deploy scripts
+ should create symlinks from the repository.
Example:
+Examples:
AUTHORITY_MUST_RESPOND: true
+ +SHARED_FILES: + - config/database.yml + - config/general.yml + - config/rails_env.rb + - config/newrelic.yml + - config/httpd.conf + - public/foi-live-creation.png + - public/foi-user-use.png + - config/aliases ++
+SHARED_DIRECTORIES: + - files/ + - cache/ + - lib/acts_as_xapian/xapiandbs/ + - vendor/bundle + - public/assets +
MAX_REQUESTS_PER_USER_PER_DAY
+ NEW_RESPONSE_REMINDER_AFTER_DAYS
Example:
MAX_REQUESTS_PER_USER_PER_DAY: 6
+ NEW_RESPONSE_REMINDER_AFTER_DAYS: [3, 10, 24]
VARNISH_HOST
+ AUTHORITY_MUST_RESPOND
true
if authorities must respond by law. Set to false
otherwise. It defaults to true
. At the moment this just controls the display of some UI text telling users that the authority must respond to them by law.
Examples:
+Example:
VARNISH_HOST: null
- VARNISH_HOST: localhost
+ AUTHORITY_MUST_RESPOND: true
GA_CODE
(GA=Google Analytics)
+ MAX_REQUESTS_PER_USER_PER_DAY
Examples:
+Example:
GA_CODE: ''
- GA_CODE: 'AB-8222142-14'
+ MAX_REQUESTS_PER_USER_PER_DAY: 6
OVERRIDE_ALL_PUBLIC_BODY_REQUEST_EMAILS
UTILITY_SEARCH_PATH
- Example:
-UTILITY_SEARCH_PATH: ["/usr/bin", "/usr/local/bin"]
- MTA_LOG_PATH
+ ALLOW_BATCH_REQUESTS
script/load-mail-server-logs
.
+ Allow some users to make batch requests to multiple authorities. Once
+ this is set to true, you can enable batch requests for an individual
+ user via the user admin page.
Example:
MTA_LOG_PATH: '/var/log/exim4/exim-mainlog-*'
+ ALLOW_BATCH_REQUESTS: false
MTA_LOG_TYPE
+ PUBLIC_BODY_LIST_FALLBACK_TO_DEFAULT_LOCALE
Example:
MTA_LOG_TYPE: "exim"
+ PUBLIC_BODY_LIST_FALLBACK_TO_DEFAULT_LOCALE: false
DONATION_URL
+ BLOG_FEED
Example:
DONATION_URL: "https://www.mysociety.org/donate/"
+ BLOG_FEED: 'https://www.mysociety.org/category/projects/whatdotheyknow/feed/'
PUBLIC_BODY_STATISTICS_PAGE
&
- MINIMUM_REQUESTS_FOR_STATISTICS
+ TWITTER_USERNAME
+ TWITTER_WIDGET_ID
/body_statistics
).
- The page will only consider public bodies that have had at least the number of requests
- set by MINIMUM_REQUESTS_FOR_STATISTICS.
-
+ If you want a twitter feed displayed on the "blog" page, provide the widget ID and username.
Example:
+Examples:
PUBLIC_BODY_STATISTICS_PAGE: false
+ TWITTER_USERNAME: WhatDoTheyKnow
MINIMUM_REQUESTS_FOR_STATISTICS: 50
+ TWITTER_WIDGET_ID: '833549204689320031'
PUBLIC_BODY_LIST_FALLBACK_TO_DEFAULT_LOCALE
+ DONATION_URL
Example:
PUBLIC_BODY_LIST_FALLBACK_TO_DEFAULT_LOCALE: false
+ DONATION_URL: "https://www.mysociety.org/donate/"
USE_MAILCATCHER_IN_DEVELOPMENT
+ DEBUG_RECORD_MEMORY
Example:
USE_MAILCATCHER_IN_DEVELOPMENT: true
+ DEBUG_RECORD_MEMORY: false
CACHE_FRAGMENTS
+ VARNISH_HOST
config.action_controller.perform_caching
is set to true
-
+ If you're running behind Varnish, it might help to set this to
+ work out where to send purge requests.
+ Otherwise, don't set it.
Example:
+Examples:
CACHE_FRAGMENTS: true
+ VARNISH_HOST: null
+ VARNISH_HOST: localhost
SHARED_FILES_PATH
+ USE_MAILCATCHER_IN_DEVELOPMENT
files
directory, the cache
directory and the
- generated graphs such as public/foi-live-creation.png
. If you're
- installing Alaveteli in such a setup then set SHARED_FILES_PATH to
- the directory you're keeping these files under. Otherwise, leave it blank.
+
+ If true, while in development mode, try to send mail by SMTP to port
+ 1025 (the port the mailcatcher listens on by default):
Example:
SHARED_FILES_PATH: ''
+ USE_MAILCATCHER_IN_DEVELOPMENT: true
SHARED_FILES
&
- SHARED_DIRECTORIES
+ USE_GHOSTSCRIPT_COMPRESSION
Examples:
+Example:
-SHARED_FILES: - - config/database.yml - - config/general.yml - - config/rails_env.rb - - config/newrelic.yml - - config/httpd.conf - - public/foi-live-creation.png - - public/foi-user-use.png - - config/aliases --
-SHARED_DIRECTORIES: - - files/ - - cache/ - - lib/acts_as_xapian/xapiandbs/ - - vendor/bundle - - public/assets -+
USE_GHOSTSCRIPT_COMPRESSION: true
ALLOW_BATCH_REQUESTS
+ HTML_TO_PDF_COMMAND
Example:
ALLOW_BATCH_REQUESTS: false
+ HTML_TO_PDF_COMMAND: /usr/local/bin/wkhtmltopdf-amd64
RESPONSIVE_STYLING
+ CACHE_FRAGMENTS
config.action_controller.perform_caching
is set to true
Example:
RESPONSIVE_STYLING: true
+ CACHE_FRAGMENTS: true