forked from OCHA-DAP/hdx-ckan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon-config-ini.txt
407 lines (315 loc) · 14.6 KB
/
common-config-ini.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
# PLEASE ALSO SEE FILE specific-config-ini.sample AND THE COMMENTS
# FROM THE BEGINNING OF THAT FILE
#
# This file contains the common configuration options for ckan.
# These configuration options should be the same on all
# servers and development environments.
# Do not change and commit changes to this file unless every
# server and dev environment needs to use the changes.
# The commented configuration options marked with "#!" need to
# be overwritten in your specific-config-ini.txt ( aka development.ini,
# aka production.ini )
[app:main]
use = egg:ckan
full_stack = true
cache_dir = /tmp/%(ckan.site_id)s/
beaker.session.key = ckan_session
# 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 = 2yD+TjjiiW+VtA38OcfQJNPPO
beaker.session.data_serializer = json
beaker.session.httponly = true
beaker.session.secure = true
# 3 days in seconds
beaker.session.timeout = 259200
beaker.session.save_accessed_time = true
beaker.session.type = ext:redis
beaker.session.url = redis://gisredis:6379/5
beaker.session.cookie_expires = true
# Your domain should show here.
beaker.session.cookie_domain = data.humdata.local
# `paster make-config` generates a unique value for this each time it generates
# a config file.
#
# 2.1 app_instance_uuid = {61c80b08-7421-43ab-b01c-4dae95521374}
#!app_instance_uuid = {0b55a427-a808-470f-a341-37abcd46ba1}
# repoze.who config
who.config_file = %(here)s/ckanext-hdx_theme/ckanext/hdx_theme/config/who.ini
who.log_level = warning
who.log_file = %(cache_dir)s/who_log.ini
# 3 days in seconds
who.timeout = 259200
# only set the auth cookie on HTTPS
who.secure = True
## Database Settings
#!sqlalchemy.url = postgresql://ckanuser:pass@localhost/ckandb
#ckan.datastore.write_url = postgresql://dsuser:pass@localhost/datastore
#ckan.datastore.read_url = postgresql://dsuser:pass@localhost/datastore
## Site Settings
#!ckan.site_url = http://ckan.example.org
## Authorization Settings
ckan.auth.anon_create_dataset = false
ckan.auth.create_unowned_dataset = false
ckan.auth.create_dataset_if_not_in_organization = false
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
ckan.auth.create_user_via_web = true
ckan.auth.roles_that_cascade_to_sub_groups = admin
ckan.auth.public_user_details = false
ckan.group_and_organization_list_all_fields_max = 400
# ckanext.powerview.allow_user_create = true
## Search Settings
search.facets = dataseries_name groups res_format organization vocab_Topics license_id
ckan.site_id = default
#!solr_url = http://127.0.0.1:8983/solr
#ckan.simple_search = 1
## Plugins Settings
# Note: Add ``datastore`` to enable the CKAN DataStore
# Add ``datapusher`` to enable DataPusher
# Add ``pdf_preview`` to enable the resource preview for PDFs
# Add ``resource_proxy`` to enable resorce proxying and get around the
# same origin policy
#ckan.plugins_deprecated = hdx_orgs register metadata_fields dataset_auth ungroups hdx_theme stats text_preview recline_preview
#changed with mail validation ckan.plugins = hdx_crisis hdx_search sitemap hdx_org_group hdx_group hdx_package hdx_users hdx_theme stats text_preview recline_preview datastore
ckan.plugins = hdx_dataviz dcat dcat_json_interface structured_data expire_api_token hdx_hxl_preview hdx_office_preview ytp_request hdx_pages hdx_choropleth_map_view hdx_geopreview_view hdx_chart_views hdx_service_checker hdx_analytics hdx_search sitemap hdx_org_group hdx_group hdx_package hdx_user_extra hdx_mail_validate hdx_users hdx_theme security requestdata s3filestore showcase stats resource_proxy text_view datastore activity
ckan.views.default_views = image_view recline_view text_view
ckan.csrf_protection.ignore_extensions = false
## Front-End Settings
ckan.site_title = Humanitarian Data Exchange
ckan.site_logo = /images/homepage/logo-beta-inverted.svg
ckan.site_description =
ckan.favicon = /favicon.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
# 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.publickey =
#ckan.recaptcha.privatekey =
#!ckan.recaptcha.publickey =
#!ckan.recaptcha.privatekey =
#licenses_group_url = http://licenses.opendefinition.org/licenses/groups/ckan.json
# ckan.template_footer_end =
#!ckan.tracking_enabled = True
## Internationalisation Settings
ckan.locale_default = en_AU
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 =
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
# Local file storage:
ofs.impl = pairtree
ofs.storage_dir = /srv/filestore
ckan.storage_path = /srv/filestore
ckan.max_resource_size = 300
ckan.max_image_size = 2
# Path to resource format mapping file is:
ckan.resource_formats = %(here)s/ckanext-hdx_package/ckanext/hdx_package/config/resource_formats.json
ckan.extra_resource_fields = broken_link in_quarantine daterange_for_data pii_is_sensitive p_coded
ckan.resource_formats.external_system = External System
# Max file size for resource proxide via the internal ckanext.resourceproxy.controller.ProxyController (like json)
ckan.resource_proxy.max_file_size = 2097152
# ckan.legacy_route_mappings = {"organization_activity": "organization_activity", "organization_members": "organization_members"}
ckan.webassets.path = /tmp/ckan/webassets
#ckan.recline.dataproxy_url = /dataproxy
ckanext.spatial.common_map.type = custom
ckanext.spatial.common_map.custom.url = /crisis-tiles/{z}/{x}/{y}.png
## Datapusher settings
# Make sure you have set up the DataStore
#ckan.datapusher.formats =
#ckan.datapusher.url = http://127.0.0.1:8800/
## 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
## Default token expiration value
expire_api_token.default_lifetime = 30
## Email settings
email_to = [email protected]
error_email_from = paste@localhost
smtp.server = localhost
smtp.starttls = False
#smtp.user = [email protected]
#smtp.password = your_password
#smtp.mail_from =
## AWS S3 settings
ckanext.s3filestore.aws_access_key_id = aws_access_key_id
ckanext.s3filestore.aws_secret_access_key = aws_secret_access_key
ckanext.s3filestore.aws_bucket_name = hdx-ckan-filestore-dev
ckanext.s3filestore.host_name = http://s3.eu-central-1.amazonaws.com
ckanext.s3filestore.region_name= eu-central-1
ckanext.s3filestore.signature_version = signature_version
ckanext.s3filestore.link_expires_in_seconds = 180
## DOWNLOAD WITH CACHE DATASETS
# accepting comma separated list with no spaces
hdx.download_with_cache.datasets = sample-dataset-name
hdx.download_with_cache.folder = /srv/filestore/download_cache
#hdx.orgrequest.email = [email protected]
hdx.orgrequest.sendmails = true
hdx.faqrequest.email = [email protected]
hdx.cache.onstartup = true
hdx.less_compile.onstartup = false
hdx.homepage.extrasources = 13
hdx.ogre.url = http://ogre:3000
hdx.mapbox.baselayer.url = https://{s}.tiles.mapbox.com/v3/reliefweb.l43d4f5j/{z}/{x}/{y}.png
## Chart / Top line num source settings
# Current active crises
hdx.crises = ebola, nepal-earthquake
hdx.crisis.ebola = ebola
hdx.crisis.nepal_earthquake = nepal-earthquake
## Featured Org settings
hdx.featured_org_config = 1f3dbfae-76d1-42da-bc29-b497fa144e90
hdx.default_frequency = -999
# Ebola page
# hdx.ebola.datastore.top_line_num = a02903a9-022b-4047-bbb5-45127b591c85
hdx.ebola.datastore.cases = c59b5722-ca4b-41ca-a446-472d6d824d01
# hdx.ebola.datastore.appeal = 93b92803-f9fa-45f4-bf72-73a8ab1d8922
# Columbia page
hdx.colombia.datastore.top_line_num = f78fe6f8-c363-4988-a847-b7c1c81ca233
hdx.colombia.datastore.displaced = 1f56da93-6622-477f-9b55-b109def3f248
hdx.colombia.datastore.access_constraints = 9e69d499-0b2b-4da6-9c61-10e453a57504
# Nepal Earthquake page
hdx.nepal_earthquake.filestore.circle_markers = /dataset/json-repository/resource_download/c7a5b4a5-ce29-484e-9f8c-581ccefba04e
hdx.nepal_earthquake.filestore.shakemap = /dataset/json-repository/resource_download/475656c7-ee1e-4cd1-a11e-fd20e397be1c
# GIS
# This should be overriden in your own prod.ini
# hdx.gis.layer_import_url = http://localhost:1234/api/add-layer/dataset/{dataset_id}/resource/{resource_id}?resource_download_url={resource_download_url}&url_type={url_type}
# hdx.gis.resource_pbf_url = http://localhost:7101/services/postgis/{resource_id}/wkb_geometry/vector-tiles/{z}/{x}/{y}.pbf
# Analytics
hdx.analytics.ga.token = UA-48221887-3
hdx.analytics.hotjar.site_id =
# This should be overriden in your own prod.ini
# hdx.analytics.enqueue_url = http://localhost:1234/api/send-analytics
hdx.analytics.mixpanel.token = 875bfe50f9cb981f4e2817832c83c165
hdx.analytics.mixpanel.secret = OVERWRITE_WITH_SECRET_FROM_MP_PROJECT
hdx.analytics.hours_for_results_in_cache = 12
hdx.analytics.mixpanel.warning_threshold_seconds = 90
# Disable HDX API tracking
# added in prod.ini.tpl as env vars; the env vars get their defaults in the ckn startup script
# hdx.analytics.track_api = false
# hdx.analytics.track_api.exclude_browsers =
# hdx.analytics.track_api.exclude_other =
# Scheduled execution
# This should be overriden in your own prod.ini.
hdx.jobprocessor.scheduled.base_url = http://localhost:1234/api/scheduler/
hdx.captcha = true
hdx.captcha.url = https://www.google.com/recaptcha/api/siteverify
hdx.onboarding.send_confirmation_email = true
# The configuration for running the service checks
hdx.checks.config_path = /srv/ckan/ckanext-hdx_service_checker/ckanext/hdx_service_checker/config/config.json
hdx.checks.allowed_user_agent = HDX-CHECKER
# Map Explorer configs
hdx.explorer.url = /mpx/#/
hdx.explorer.iframe.width = 100%%
hdx.explorer.iframe.height = 750px
#file structure check
hdx.file_structure.check_url = http://gislayer:5000/api/file-structure-check/dataset/{dataset_id}/resource/{resource_id}
# Hxl Proxy
# This should be overriden in your own prod.ini
hdx.hxlproxy.url = https://proxy.hxlstandard.org
hdx.hxlproxy.source_info_url = https://proxy.hxlstandard.org/api/source-info?url={url}
# HXL Preview
hdx.hxl_preview_app.url = http://172.17.42.1/hxlpreview
# HDX Snap Service
hdx.snap_service.url = http://snap:8080
# Org member request configs
ytp.requests.hide_member_role = false
ytp.requests.redirect_to_src_page = true
# The url for topline data for active locations
# DEPRECATED. Replaced by hdx.active_locations_reliefweb.resource_id
# hdx.active_locations_toplines.url = https://raw.githubusercontent.com/reliefweb/crisis-app-data/master/crisis.json
# The resource for topline data for active locations
hdx.active_locations_reliefweb.resource_id = 4551480e-448e-4b09-b02f-ed31d42a43d5
# The url containing a hxlated date with country topline numbers
hdx.locations.toplines_url = https://data.humdata.org/dataset/a0f8e926-9340-4034-a053-6c004c9bdee3/resource/9e90a441-43cc-4c69-b54f-41efabf57fa6/download/worldbank_topline.csv
#mailchimp settings - update your prod.ini with real ones
hdx.mailchimp = true
# hdx.mailchimp.api.key = aaa-fake
# hdx.mailchimp.list.newsletter = aaa-fake
# hdx.mailchimp.list.newuser = bbb-fake
# hdx.mailchimp.api.key = ccc-fake
# hdx.mailchimp.interest.data_services = ddd-fake
# hdx_requestdata setting
hdx_portal = True
ckanext.requestdata.newsletter_url = http://humdata.us14.list-manage.com/subscribe?u=ea3f905d50ea939780139789d&id=99796325d1
ckanext.requestdata.twitter_url = https://twitter.com/humdata
ckanext.requestdata.contact_email = [email protected]
# CPS
hdx.cps.off = true
# BATCH
hdx.batch.period_in_mins = 3
#SEARCH_HISTORY
hdx.search_history.hours_from_actual_search = 1
#SEARCH GROUPING/BATCH
hdx.batch.period_in_mins_unesco = 90
hdx.batch.period_in_mins_hot = 1500
#Search Index Location (ex-LUNR)
hdx.lunr.index_location = ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/search_
#Enable HDX-specific reindexing
hdx.reindexing.enabled = true
# number of datasets to process at a time
hdx.reindexing.batch_size = 200
# Dataset Validation
# hdx.validation.allow_skip_for_sysadmin = dataset_date,notes,maintainer,methodology,methodology_other,data_update_frequency,groups_list,resources/format
# DATA GRID / COMPLETENESS
hdx.datagrid.config_url_pattern = https://raw.githubusercontent.com/OCHA-DAP/data-grid-recipes/{branch}/data%%20grid%%20recipe%%20-%%20{iso}.yml
# if true, caching will be enabled and the "master" branch from the github repo will be used
hdx.datagrid.prod = true
hdx.caching.use_redis = true
hdx.apihighways.enabled = false
hdx.apihighways.url = https://api.apihighways.org/dataset?vocabulary[legacy]=hdx-full-set&page[size]=10000&includes=metadata
hdx.apihighways.baseurl = https://apihighways.org/data-sets/
hdx.qadashboard.enabled = true
# HDX specific default solr query parameters
hdx.solr.query.qf = name^4 title^4 vocab_text_Topics^2 notes groups^2 text
hdx.solr.query.tie = 0.3
hdx.solr.query.bf = scale(log(pageviews_last_14_days),0,8)
hdx.password.reset_key.expiration_in_minutes = 20
hdx.password.invitation_reset_key.expiration_in_hours = 48
# P-CODES
hdx.p_code.new_filters.enabled = false
# FAQ - Wordpress
#hdx.wordpress.url=https://centre.humdata.org
#only use auth with the dev server
#hdx.wordpress.auth.basic=
hdx.wordpress.category.faq=554
hdx.wordpress.category.covid=566
hdx.wordpress.category.devs=568
hdx.wordpress.category.terms=577
hdx.wordpress.category.licenses=581
hdx.wordpress.category.hapi=597
hdx.wordpress.category.hapi-terms=599
hdx.wordpress.category.signals=595
# HDX http headers
hdx.http_headers.routes = /country/topline/,/view/,/eaa-worldmap
hdx.http_headers.mimetypes = application/json,text/html,text/json\
# Security Extension Config
ckanext.security.domain = data.humdata.local
ckanext.security.redis.host = gisredis
ckanext.security.redis.port = 6379
ckanext.security.redis.db = 9
# 15 minute timeout with 10 attempts
ckanext.security.lock_timeout = 900
ckanext.security.login_max_count = 10
ckanext.security.brute_force_key = user_name
# Redirect admins to setup 2FA
hdx.security.2fa.redirect = true
# Used for issuer name in the QR code for 2FA
hdx.security.site_name = HDX
# Change detection settings
hdx.change_detection.layer_url = http://layer:5000/api/create-change-events
# JSON Log File
hdx.ckan_json_log.enable = true
hdx.ckan_json_log.file = /var/log/ckan/ckan.json.log