diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-11-06 21:04:10 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-11-07 17:01:02 +0000 |
commit | ab1625b7eaec127c727c236b98ba47a6643f4625 (patch) | |
tree | 239b736778b0b80f01b37222ab1039e984b4cae2 /conf/general.yml-example | |
parent | a44daf98c962a22f43408ab3990114ea156475c6 (diff) |
If only one cobrand given, always use it.
If the ALLOWED_COBRANDS configuration variable only contains one entry
(and also work if it's a string rather than a list), always use that
cobrand, no matter what the hostname is.
The example Vagrantfile no longer needs the configuration changes at
all.
Diffstat (limited to 'conf/general.yml-example')
-rw-r--r-- | conf/general.yml-example | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/conf/general.yml-example b/conf/general.yml-example index 2f78de986..f5fb89b64 100644 --- a/conf/general.yml-example +++ b/conf/general.yml-example @@ -121,16 +121,28 @@ GEOCODING_DISAMBIGUATION: '' MAP_TYPE: 'OSM' # FixMyStreet uses a templating cobrand system to provide different looks for -# different installations. If your site was at moon.example.org, and your templates -# were in the templates/web/moon directory, you would use: +# different installations. In the common case, if your templates are in the +# templates/web/moon directory and CSS in web/cobrands/moon, you just specify: # ALLOWED_COBRANDS: -# - moon: 'moon.example.org' +# - moon +# If you wish to use multiple cobrands, specify them in a list, optionally with +# hostname-matching regular expressions if the name of the cobrand is not +# enough. For example: +# ALLOWED_COBRANDS: +# - moon +# - venus +# Any hostname with 'moon' in it will use the moon cobrand, any with 'venus' +# the venus cobrand (any other the Default cobrand). Whereas: +# ALLOWED_COBRANDS: +# - moon: 'orbital' +# - venus +# Any hostname with 'orbital' in it will use the moon cobrand. # This also allows development servers to map to different cobrands if needed, # using DNS subdomains for example. ALLOWED_COBRANDS: - - cobrand_one - - cobrand_two: 'hostname_substring2' - - cobrand_three + - cobrand1 + - cobrand2: 'hostname_substring2' + - cobrand3 # This is only used in "offensive report" emails to provide a link directly to # the admin interface. If wanted, set to the full URL of your admin interface. |