2017-11-19 10:01:18 +01:00
|
|
|
#
|
|
|
|
# CKAN - Pylons configuration
|
|
|
|
#
|
|
|
|
# These are some of the configuration options available for your CKAN
|
|
|
|
# instance. Check the documentation in 'doc/configuration.rst' or at the
|
|
|
|
# following URL for a description of what they do and the full list of
|
|
|
|
# available options:
|
|
|
|
#
|
|
|
|
# http://docs.ckan.org/en/latest/maintaining/configuration.html
|
|
|
|
#
|
|
|
|
# The %(here)s variable will be replaced with the parent directory of this file
|
|
|
|
#
|
|
|
|
|
|
|
|
[DEFAULT]
|
|
|
|
|
|
|
|
# WARNING: *THIS SETTING MUST BE SET TO FALSE ON A PRODUCTION ENVIRONMENT*
|
2018-01-30 20:59:11 +01:00
|
|
|
debug = true
|
2017-11-19 10:01:18 +01:00
|
|
|
|
|
|
|
[server:main]
|
|
|
|
use = egg:Paste#http
|
|
|
|
host = 0.0.0.0
|
2018-03-25 22:55:15 +02:00
|
|
|
port = 8080
|
2017-11-19 10:01:18 +01:00
|
|
|
|
|
|
|
[app:main]
|
|
|
|
use = egg:ckan
|
|
|
|
full_stack = true
|
|
|
|
cache_dir = /tmp/%(ckan.site_id)s/
|
|
|
|
beaker.session.key = ckan
|
|
|
|
|
|
|
|
# This is the secret token that the beaker library uses to hash the cookie sent
|
|
|
|
# to the client. `paster make-config` generates a unique value for this each
|
|
|
|
# time it generates a config file.
|
|
|
|
beaker.session.secret = ${CKAN_SECRET}
|
|
|
|
|
|
|
|
# `paster make-config` generates a unique value for this each time it generates
|
|
|
|
# a config file.
|
|
|
|
app_instance_uuid = ${CKAN_UUID}
|
|
|
|
|
|
|
|
# repoze.who config
|
|
|
|
who.config_file = %(here)s/who.ini
|
|
|
|
who.log_level = warning
|
|
|
|
who.log_file = %(cache_dir)s/who_log.ini
|
|
|
|
# Session timeout (user logged out after period of inactivity, in seconds).
|
|
|
|
# Inactive by default, so the session doesn't expire.
|
|
|
|
# who.timeout = 86400
|
|
|
|
|
|
|
|
## Database Settings
|
2017-12-16 20:41:58 +01:00
|
|
|
sqlalchemy.url = postgresql://ckan:${CKAN_PWD}@postgres/ckan
|
2017-11-19 10:01:18 +01:00
|
|
|
|
2017-12-16 20:41:58 +01:00
|
|
|
ckan.datastore.write_url = postgresql://ckan:${CKAN_PWD}@postgres/ckan_datastore
|
|
|
|
ckan.datastore.read_url = postgresql://ckan_datastore:${CKAN_DS_PWD}@postgres/ckan_datastore
|
2017-11-19 10:01:18 +01:00
|
|
|
|
|
|
|
# PostgreSQL' full-text search parameters
|
2017-12-16 20:41:58 +01:00
|
|
|
ckan.datastore.default_fts_lang = english
|
2017-11-19 10:01:18 +01:00
|
|
|
ckan.datastore.default_fts_index_method = gist
|
|
|
|
|
|
|
|
## Site Settings
|
|
|
|
|
2018-04-29 20:48:57 +02:00
|
|
|
ckan.site_url = https://ckan.spotter.vm
|
2017-11-19 10:01:18 +01:00
|
|
|
#ckan.use_pylons_response_cleanup_middleware = true
|
|
|
|
|
|
|
|
## Authorization Settings
|
|
|
|
|
|
|
|
ckan.auth.anon_create_dataset = false
|
2017-11-28 11:59:57 +01:00
|
|
|
ckan.auth.create_unowned_dataset = true
|
|
|
|
ckan.auth.create_dataset_if_not_in_organization = true
|
2017-11-19 10:01:18 +01:00
|
|
|
ckan.auth.user_create_groups = false
|
|
|
|
ckan.auth.user_create_organizations = false
|
|
|
|
ckan.auth.user_delete_groups = false
|
|
|
|
ckan.auth.user_delete_organizations = false
|
|
|
|
ckan.auth.create_user_via_api = false
|
2017-11-28 11:59:57 +01:00
|
|
|
ckan.auth.create_user_via_web = true
|
2017-11-19 10:01:18 +01:00
|
|
|
ckan.auth.roles_that_cascade_to_sub_groups = admin
|
|
|
|
|
|
|
|
|
|
|
|
## Search Settings
|
|
|
|
|
|
|
|
ckan.site_id = default
|
2017-12-16 20:41:58 +01:00
|
|
|
solr_url = http://solr:8983/solr/ckan
|
2017-11-19 10:01:18 +01:00
|
|
|
|
|
|
|
|
|
|
|
## Redis Settings
|
|
|
|
|
|
|
|
# URL to your Redis instance, including the database to be used.
|
2017-12-16 20:41:58 +01:00
|
|
|
ckan.redis.url = redis://redis:6379/0
|
2017-11-19 10:01:18 +01:00
|
|
|
|
|
|
|
|
|
|
|
## CORS Settings
|
|
|
|
|
|
|
|
# If cors.origin_allow_all is true, all origins are allowed.
|
|
|
|
# If false, the cors.origin_whitelist is used.
|
|
|
|
# ckan.cors.origin_allow_all = true
|
|
|
|
# cors.origin_whitelist is a space separated list of allowed domains.
|
|
|
|
# ckan.cors.origin_whitelist = http://example1.com http://example2.com
|
|
|
|
|
|
|
|
|
|
|
|
## Plugins Settings
|
|
|
|
|
|
|
|
# Note: Add ``datastore`` to enable the CKAN DataStore
|
|
|
|
# Add ``datapusher`` to enable DataPusher
|
|
|
|
# Add ``resource_proxy`` to enable resorce proxying and get around the
|
|
|
|
# same origin policy
|
2018-01-18 15:35:32 +01:00
|
|
|
ckan.plugins = stats text_view image_view recline_view datastore datapusher resource_proxy linechart barchart piechart basicgrid spatial_metadata spatial_query geo_view geojson_view wmts_view navigablemap choroplethmap spatialUI datasetthumbnail dgvat_xls
|
2017-11-19 10:01:18 +01:00
|
|
|
|
|
|
|
# Define which views should be created by default
|
|
|
|
# (plugins must be loaded in ckan.plugins)
|
2017-11-23 08:37:01 +01:00
|
|
|
ckan.views.default_views = image_view text_view recline_view geo_view geojson_view wmts_view
|
2017-11-19 10:01:18 +01:00
|
|
|
|
|
|
|
# Customize which text formats the text_view plugin will show
|
|
|
|
#ckan.preview.json_formats = json
|
|
|
|
#ckan.preview.xml_formats = xml rdf rdf+xml owl+xml atom rss
|
|
|
|
#ckan.preview.text_formats = text plain text/plain
|
|
|
|
|
|
|
|
# Customize which image formats the image_view plugin will show
|
|
|
|
#ckan.preview.image_formats = png jpeg jpg gif
|
|
|
|
|
2017-11-23 08:37:01 +01:00
|
|
|
# GeoView plugin settings
|
|
|
|
ckanext.geoview.ol_viewer.formats = wms wfs geojson gml kml arcgis_rest gft
|
2018-08-02 10:41:40 +02:00
|
|
|
ckanext.geoview.gapi_key =
|
2017-11-23 08:37:01 +01:00
|
|
|
|
2017-12-04 14:52:27 +01:00
|
|
|
# Pages plugin settings
|
|
|
|
ckanext.pages.organization = true
|
|
|
|
ckanext.pages.group = true
|
|
|
|
ckanext.pages.allow_html = true
|
|
|
|
ckanext.pages.editor = ckeditor
|
|
|
|
|
2017-12-01 10:17:50 +01:00
|
|
|
# Dataset thumbnail plugin settings
|
2017-12-04 14:52:27 +01:00
|
|
|
ckan.datasetthumbnail.show_thumbnail = true
|
|
|
|
ckan.datasetthumbnail.auto_generate = true
|
2017-11-24 11:35:04 +01:00
|
|
|
|
2017-11-19 10:01:18 +01:00
|
|
|
## Front-End Settings
|
2017-12-01 10:17:50 +01:00
|
|
|
|
|
|
|
# Uncomment following configuration to enable using of Bootstrap 2
|
|
|
|
#ckan.base_public_folder = public-bs2
|
|
|
|
#ckan.base_templates_folder = templates-bs2
|
|
|
|
|
2017-11-19 10:01:18 +01:00
|
|
|
ckan.site_title = CKAN
|
|
|
|
ckan.site_logo = /base/images/ckan-logo.png
|
|
|
|
ckan.site_description =
|
|
|
|
ckan.favicon = /base/images/ckan.ico
|
|
|
|
ckan.gravatar_default = identicon
|
|
|
|
ckan.preview.direct = png jpg gif
|
|
|
|
ckan.preview.loadable = html htm rdf+xml owl+xml xml n3 n-triples turtle plain atom csv tsv rss txt json
|
|
|
|
ckan.display_timezone = server
|
|
|
|
|
|
|
|
# package_hide_extras = for_search_index_only
|
|
|
|
#package_edit_return_url = http://another.frontend/dataset/<NAME>
|
|
|
|
#package_new_return_url = http://another.frontend/dataset/<NAME>
|
|
|
|
#ckan.recaptcha.version = 1
|
|
|
|
#ckan.recaptcha.publickey =
|
|
|
|
#ckan.recaptcha.privatekey =
|
|
|
|
#licenses_group_url = http://licenses.opendefinition.org/licenses/groups/ckan.json
|
|
|
|
# ckan.template_footer_end =
|
|
|
|
|
|
|
|
|
|
|
|
## Internationalisation Settings
|
|
|
|
ckan.locale_default = cs_CZ
|
|
|
|
ckan.locale_order = en pt_BR ja it cs_CZ ca es fr el sv sr sr@latin no sk fi ru de pl nl bg ko_KR hu sa sl lv
|
|
|
|
ckan.locales_offered = cs_CZ en
|
|
|
|
ckan.locales_filtered_out = en_GB
|
|
|
|
|
|
|
|
## Feeds Settings
|
|
|
|
|
|
|
|
ckan.feeds.authority_name =
|
|
|
|
ckan.feeds.date =
|
|
|
|
ckan.feeds.author_name =
|
|
|
|
ckan.feeds.author_link =
|
|
|
|
|
|
|
|
## Storage Settings
|
|
|
|
|
2017-12-01 10:17:50 +01:00
|
|
|
ckan.storage_path = /srv/ckan/storage
|
2017-11-23 08:37:01 +01:00
|
|
|
ckan.max_resource_size = 100
|
2017-12-01 10:17:50 +01:00
|
|
|
ckan.max_image_size = 10
|
2017-11-19 10:01:18 +01:00
|
|
|
|
|
|
|
## Datapusher settings
|
|
|
|
|
|
|
|
# Make sure you have set up the DataStore
|
|
|
|
|
2018-03-26 23:50:50 +02:00
|
|
|
#ckan.datapusher.formats = csv xls xlsx tsv application/csv application/vnd.ms-excel application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
2018-04-21 22:38:30 +02:00
|
|
|
ckan.datapusher.url = http://ckan-datapusher:8080/
|
2017-11-19 10:01:18 +01:00
|
|
|
#ckan.datapusher.assume_task_stale_after = 3600
|
|
|
|
|
|
|
|
# Resource Proxy settings
|
|
|
|
# Preview size limit, default: 1MB
|
2017-12-01 10:17:50 +01:00
|
|
|
#ckan.resource_proxy.max_file_size = 1048576
|
2017-11-19 10:01:18 +01:00
|
|
|
# Size of chunks to read/write.
|
2017-12-01 10:17:50 +01:00
|
|
|
#ckan.resource_proxy.chunk_size = 4096
|
2017-11-19 10:01:18 +01:00
|
|
|
|
|
|
|
## Activity Streams Settings
|
|
|
|
|
|
|
|
#ckan.activity_streams_enabled = true
|
|
|
|
#ckan.activity_list_limit = 31
|
|
|
|
#ckan.activity_streams_email_notifications = true
|
|
|
|
#ckan.email_notifications_since = 2 days
|
|
|
|
ckan.hide_activity_from_users = %(ckan.site_id)s
|
|
|
|
|
|
|
|
|
|
|
|
## Email settings
|
|
|
|
|
|
|
|
#email_to = errors@example.com
|
|
|
|
#error_email_from = ckan-errors@example.com
|
2018-01-30 16:34:29 +01:00
|
|
|
smtp.server = postfix
|
2017-11-19 10:01:18 +01:00
|
|
|
smtp.starttls = False
|
|
|
|
#smtp.user = username@example.com
|
|
|
|
#smtp.password = your_password
|
2018-08-02 10:41:40 +02:00
|
|
|
smtp.mail_from = admin@example.com
|
2017-11-19 10:01:18 +01:00
|
|
|
|
|
|
|
|
|
|
|
## Logging configuration
|
|
|
|
[loggers]
|
|
|
|
keys = root, ckan, ckanext
|
|
|
|
|
|
|
|
[handlers]
|
|
|
|
keys = console
|
|
|
|
|
|
|
|
[formatters]
|
|
|
|
keys = generic
|
|
|
|
|
|
|
|
[logger_root]
|
|
|
|
level = WARNING
|
|
|
|
handlers = console
|
|
|
|
|
|
|
|
[logger_ckan]
|
|
|
|
level = INFO
|
|
|
|
handlers = console
|
|
|
|
qualname = ckan
|
|
|
|
propagate = 0
|
|
|
|
|
|
|
|
[logger_ckanext]
|
|
|
|
level = DEBUG
|
|
|
|
handlers = console
|
|
|
|
qualname = ckanext
|
|
|
|
propagate = 0
|
|
|
|
|
|
|
|
[handler_console]
|
|
|
|
class = StreamHandler
|
|
|
|
args = (sys.stderr,)
|
|
|
|
level = NOTSET
|
|
|
|
formatter = generic
|
|
|
|
|
|
|
|
[formatter_generic]
|
|
|
|
format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s
|