# # DeliveranceVHoster - environment configuration # [DEFAULT] ## FIXME: should be based on... something else email_to = ianb@openplans.org smtp_server = localhost error_email_from = paste@{{env.fq_hostname}} base_path = {{env.base_path}} [server:main] use = egg:Paste#http host = {{config.host}} port = {{config.port}} [app:main] use = egg:DeliveranceVHoster data_dir = {{env.var}}/deliverance/hosts custom_error_dir = {{env.base_path}}/deliverance/src/deliverancevhoster/errors/www.openplans.org #debug_headers = true # To view bodies: #debug_bodies = true # To show how routing is calculated: #debug_routing = true # To disable the rewriting of links: #rewrite_links = false # Use this to remove certain headers from any request: # (note: this matches the *environmental key*, not the original header) clean_environ_headers_regex = ^HTTP_X_OPENPLANS # master_site_domain = "auto" makes every site like the "master" # www.openplans.org site, hosting multiple projects. If you set it to # a specific domain, then any other domains will be treated as project # vhosts: master_site_domain = {{project.req_settings.get('master_site_domain', 'auto')}} # WARNING: *THE LINE BELOW MUST BE FALSE ON A PRODUCTION ENVIRONMENT* set debug = false # Force certain URLs to use SSL, or not (via build.ini's sslonly setting) # WARNING: If this is set to true, you MUST have SSL correctly configured # for this host, and all SSL requests MUST set X-Forwarded-Scheme header # to 'https' and X-Forwarded-Port header to '443'. force_ssl = {{config.force_ssl}} logger = {{env.var}}/logs/deliverance/dvhoster.log init_domain = %(base_path)s/deliverance/src/openplans_hooks/openplans_hooks.py find_remote_uri = %(base_path)s/deliverance/src/openplans_hooks/openplans_hooks.py should_theme_uri = %(base_path)s/deliverance/src/openplans_hooks/openplans_hooks.py links_config = %(base_path)s/etc/build.ini ## FIXME: this should be parameterized or something: no_filter_zope = True ## FIXME: this should also be parameterized: domain_regex = ^(.*)\.flow\.openplans\.org$ transcluder_enabled = True ## FIXME: parameterized again: ## (maybe transcluder should have a same-host policy) # this can be: # all - any host is ok # none - no hosts are ok # localhost - only localhsost # - only hosts matching the regex given transcluder_ok_hosts = openplans.org|(.*)\.openplans.org|(.*)\.localhost.openplans\.org|localhost|127.0.0.1 transcluder_pool_size = 0 # Where to load the default theme. # Note re. the defaults: fassembler tries to get this setting from the # project's requirements file; if it's not set there, fassembler # assumes deliverance is the outermost server in your stack so the # theme can be requested from deliverance itself. # This is at least better than the old fallback of hitting openplans.org. default_theme_uri = {{project.req_settings.get('default_theme_uri', '/theme.html')}} # Deliverance will look for rules in this directory if a host-specific # rule is not found. default_rules_dir = {{env.var}}/deliverance/default_rules # Specifies whether to load authentication middleware auth_enabled = True topp_secret_filename = {{env.config.get('general', 'topp_secret_filename')}}