[% INCLUDE 'admin/header.html' title=loc('Configuration') -%]
[% BLOCK subsection %]
[% heading %] |
[% END %]
[% BLOCK just_value %]
[% SET conf = c.config.$value IF NOT conf;
conf = conf.join(', ') IF conf.size %]
[% value %] |
[% conf or conf_default %] |
[% END %]
[% BLOCK with_cobrand %]
[% SET conf = c.config.$value IF NOT conf;
conf = conf.join(', ') IF conf.size;
cob = cob.join(', ') IF conf.size %]
[% value %] |
[% conf %] |
[% cob IF cob != conf %] |
[% END %]
A summary of this site's configuration,
running version [% git_version || 'unknown' %].
Variable |
general.yml value |
Cobrand module override |
[% INCLUDE subsection heading="URLs" %]
[% INCLUDE with_cobrand value="BASE_URL" cob=c.cobrand.base_url %]
[% INCLUDE with_cobrand value="ADMIN_BASE_URL" cob=c.cobrand.admin_base_url %]
[% INCLUDE just_value value="SECURE_PROXY_SSL_HEADER" %]
[% INCLUDE subsection heading="Display" %]
Site title |
[% site_name %] |
[% allowed_conf = FOR k IN c.config.ALLOWED_COBRANDS %]
[% IF k.keys %][% k.items.join(':') %][% ELSE %][% k %][% END %]
[%- ',' IF NOT loop.last %]
[% END %]
[% INCLUDE just_value value="ALLOWED_COBRANDS" conf = allowed_conf %]
Web templates |
[% c.cobrand.path_to_web_templates.join(' ') %] |
[% INCLUDE with_cobrand value="MAP_TYPE" cob=c.cobrand.map_type %]
[% INCLUDE with_cobrand value="EXAMPLE_PLACES"
conf = decode(c.config.EXAMPLE_PLACES.join(', '))
cob = c.cobrand.example_places %]
[% INCLUDE with_cobrand value="LANGUAGES"
cob = c.cobrand.languages %]
Language override |
- |
[% 'domain=' _ c.cobrand.language_domain IF c.cobrand.language_domain %]
[% 'language=' _ c.cobrand.language_override IF c.cobrand.language_override %]
|
[% INCLUDE with_cobrand value="ALL_REPORTS_PER_PAGE" cob=c.cobrand.reports_per_page %]
[% INCLUDE just_value value="RSS_LIMIT" %]
[% INCLUDE just_value value="OPEN311_LIMIT" conf_default = '1000' %]
[% INCLUDE just_value value="AREA_LINKS_FROM_PROBLEMS" %]
[% INCLUDE subsection heading="Geocoder" %]
[% INCLUDE just_value value="GEOCODER"
conf_default = '(None; default Nominatim OSM)'
%]
[% disconf = FOR k IN c.config.GEOCODING_DISAMBIGUATION %]
[% k.key %]=[% k.value %][% ',' IF NOT loop.last %]
[% END %]
[% discob = FOR k IN c.cobrand.disambiguate_location %]
[% k.key %]=[% k.value %][% ',' IF NOT loop.last %]
[% END %]
[% INCLUDE with_cobrand value="GEOCODING_DISAMBIGUATION"
conf = disconf
cob = discob %]
[% INCLUDE subsection heading="MapIt" %]
[% INCLUDE just_value value="MAPIT_URL"
conf = "" _ c.config.MAPIT_URL _ "" %]
[% INCLUDE with_cobrand value="MAPIT_TYPES"
cob = c.cobrand.area_types %]
MAPIT_ID_WHITELIST |
[% FOR id IN c.config.MAPIT_ID_WHITELIST %]
[% id %][% ',' UNLESS loop.last %]
[% END %]
|
[% INCLUDE just_value value="MAPIT_GENERATION" %]
[% INCLUDE with_cobrand value="MAPIT_TYPES_CHILDREN"
cob = c.cobrand.area_types_children %]
[% INCLUDE subsection heading="Database" %]
[% INCLUDE just_value value="FMS_DB_HOST" %]
[% INCLUDE just_value value="FMS_DB_PORT" %]
[% INCLUDE just_value value="FMS_DB_NAME" %]
[% INCLUDE just_value value="FMS_DB_USER" %]
[% INCLUDE subsection heading="Email" %]
[% INCLUDE just_value value="EMAIL_DOMAIN" %]
[% INCLUDE with_cobrand value="CONTACT_NAME" cob=c.cobrand.contact_name %]
[% INCLUDE with_cobrand value="CONTACT_EMAIL" cob=c.cobrand.contact_email %]
[% INCLUDE just_value value="DO_NOT_REPLY_EMAIL" %]
[% INCLUDE subsection heading="Development" %]
[% INCLUDE just_value value="STAGING_SITE" %]
[% staging_conf = FOR k IN c.config.STAGING_FLAGS %]
[% k.key %]:[% k.value %]
[%- ',' IF NOT loop.last %]
[% END %]
[% INCLUDE just_value value="STAGING_FLAGS" conf = staging_conf %]
[% INCLUDE just_value value="UPLOAD_DIR" %]
[% INCLUDE just_value value="GEO_CACHE" %]
[% INCLUDE just_value value="TESTING_COUNCILS" %]
[% INCLUDE just_value value="SMTP_SMARTHOST" %]
[% INCLUDE just_value value="TIME_ZONE" %]
[% INCLUDE just_value value="GAZE_URL" %]
Cobrand module
Other things can be changed on a cobrand basis by using functions in an
(optional) Cobrand .pm module, as explained in the
customising section of our
documentation. If you wish to add new functionality just for your cobrand
that can't be done simply by changes to your cobrand's templates, you might
need to add a new Cobrand function.
Examples of cobrand functions are below; this is not exhaustive.
Many were added for one specific cobrand, so didn't need a general
configuration option. Please feel free to discuss on our mailing list if you think
something should be moved to the general.yml file, done differently,
or have any questions.
- allow_photo_upload: [% c.cobrand.allow_photo_upload %],
allow_photo_display: [% c.cobrand.allow_photo_display %]
- send_questionnaires: [% c.cobrand.send_questionnaires %],
ask_ever_reported: [% c.cobrand.ask_ever_reported %]
- default_map_zoom: [% c.cobrand.default_map_zoom or '-' %]
- default_show_name: [% c.cobrand.default_show_name %]
- users_can_hide: [% c.cobrand.users_can_hide %]
- report_sent_confirmation_email: [% c.cobrand.report_sent_confirmation_email %]
- never_confirm_reports: [% c.cobrand.never_confirm_reports %],
allow_anonymous_reports: [% c.cobrand.allow_anonymous_reports %],
show_unconfirmed_reports: [% c.cobrand.show_unconfirmed_reports %]
[% INCLUDE 'admin/footer.html' %]