|
| 1 | +[DEFAULT] |
| 2 | +debug = false |
| 3 | + |
| 4 | +[server:main] |
| 5 | +use = egg:Paste#http |
| 6 | +host = 0.0.0.0 |
| 7 | +port = 5000 |
| 8 | + |
| 9 | +[app:main] |
| 10 | +use = egg:ckan |
| 11 | +full_stack = true |
| 12 | +max_content_length = 200000000 |
| 13 | + |
| 14 | +beaker.session.key = ckan |
| 15 | +beaker.session.secret = {{BEAKER_SESSION_SECRET}} |
| 16 | +app_instance_uuid = {{APP_INSTANCE_UUID}} |
| 17 | + |
| 18 | +who.config_file = %(here)s/who.ini |
| 19 | +who.log_level = warning |
| 20 | +who.log_file = %(cache_dir)s/who_log.ini |
| 21 | +# Session timeout (user logged out after period of inactivity, in seconds). |
| 22 | +# Inactive by default, so the session doesn't expire. |
| 23 | +# who.timeout = 86400 |
| 24 | + |
| 25 | +## Database Settings |
| 26 | +sqlalchemy.url = {{SQLALCHEMY_URL}} |
| 27 | + |
| 28 | +ckan.datastore.write_url = {{CKAN_DATASTORE_WRITE_URL}} |
| 29 | +ckan.datastore.read_url = {{CKAN_DATASTORE_READ_URL}} |
| 30 | + |
| 31 | +# PostgreSQL' full-text search parameters |
| 32 | +ckan.datastore.default_fts_lang = english |
| 33 | +ckan.datastore.default_fts_index_method = gist |
| 34 | + |
| 35 | + |
| 36 | +## Site Settings |
| 37 | + |
| 38 | +ckan.site_id = vital-strategies |
| 39 | +ckan.site_url = {{CKAN_SITE_URL}} |
| 40 | +#ckan.use_pylons_response_cleanup_middleware = true |
| 41 | +cache_dir = /tmp/%(ckan.site_id)s/ |
| 42 | + |
| 43 | +## Authorization Settings |
| 44 | + |
| 45 | +ckan.auth.anon_create_dataset = false |
| 46 | +ckan.auth.create_unowned_dataset = false |
| 47 | +ckan.auth.create_dataset_if_not_in_organization = true |
| 48 | +ckan.auth.user_create_groups = false |
| 49 | +ckan.auth.user_create_organizations = false |
| 50 | +ckan.auth.user_delete_groups = false |
| 51 | +ckan.auth.user_delete_organizations = false |
| 52 | +ckan.auth.create_user_via_api = false |
| 53 | +ckan.auth.create_user_via_web = true |
| 54 | +ckan.auth.roles_that_cascade_to_sub_groups = admin |
| 55 | + |
| 56 | +## Sysadmin |
| 57 | +ckan.sysadmin_name = {{CKAN_SYSADMIN_NAME}} |
| 58 | +ckan.sysadmin_password = {{CKAN_SYSADMIN_PASSWORD}} |
| 59 | +ckan.sysadmin_email = info@viderum.com |
| 60 | +ckan.hide_activity_from_users = %(ckan.site_id)s |
| 61 | + |
| 62 | + |
| 63 | +## Search Settings |
| 64 | + |
| 65 | +solr_url = {{SOLR_URL}} |
| 66 | + |
| 67 | + |
| 68 | +## Redis Settings |
| 69 | + |
| 70 | +# URL to your Redis instance, including the database to be used. |
| 71 | +ckan.redis.url = {{CKAN_REDIS_URL}} |
| 72 | + |
| 73 | + |
| 74 | +## CORS Settings |
| 75 | + |
| 76 | +# If cors.origin_allow_all is true, all origins are allowed. |
| 77 | +# If false, the cors.origin_whitelist is used. |
| 78 | +# ckan.cors.origin_allow_all = true |
| 79 | +# cors.origin_whitelist is a space separated list of allowed domains. |
| 80 | +# ckan.cors.origin_whitelist = http://example1.com http://example2.com |
| 81 | + |
| 82 | + |
| 83 | +## Plugins Settings |
| 84 | + |
| 85 | +# Add ``resource_proxy`` to enable resorce proxying and get around the |
| 86 | +# same origin policy |
| 87 | +ckan.plugins = image_view |
| 88 | + text_view |
| 89 | + recline_view |
| 90 | + datastore |
| 91 | + datapusher |
| 92 | + sentry |
| 93 | + s3filestore |
| 94 | + resource_proxy |
| 95 | + geojson_view |
| 96 | + querytool |
| 97 | + |
| 98 | + |
| 99 | +# Define which views should be created by default |
| 100 | +# (plugins must be loaded in ckan.plugins) |
| 101 | +ckan.views.default_views = image_view text_view recline_view |
| 102 | + |
| 103 | +# Customize which text formats the text_view plugin will show |
| 104 | +#ckan.preview.json_formats = json |
| 105 | +#ckan.preview.xml_formats = xml rdf rdf+xml owl+xml atom rss |
| 106 | +#ckan.preview.text_formats = text plain text/plain |
| 107 | + |
| 108 | +# Customize which image formats the image_view plugin will show |
| 109 | +#ckan.preview.image_formats = png jpeg jpg gif |
| 110 | + |
| 111 | +## Front-End Settings |
| 112 | + |
| 113 | +# Uncomment following configuration to enable using of Bootstrap 2 |
| 114 | +ckan.base_public_folder = public-bs2 |
| 115 | +ckan.base_templates_folder = templates-bs2 |
| 116 | + |
| 117 | +ckan.site_title = Vital Strategies CKAN Demo |
| 118 | +ckan.site_logo = /base/images/ckan-logo.png |
| 119 | +ckan.site_description = Vital Strategies CKAN Demo |
| 120 | +ckan.favicon = /base/images/ckan.ico |
| 121 | +ckan.gravatar_default = identicon |
| 122 | +ckan.preview.direct = png jpg gif |
| 123 | +ckan.preview.loadable = html htm rdf+xml owl+xml xml n3 n-triples turtle plain atom csv tsv rss txt json |
| 124 | +ckan.display_timezone = Etc/UTC |
| 125 | + |
| 126 | +## Feeds Settings |
| 127 | + |
| 128 | +ckan.feeds.authority_name = |
| 129 | +ckan.feeds.date = |
| 130 | +ckan.feeds.author_name = |
| 131 | +ckan.feeds.author_link = |
| 132 | + |
| 133 | +## Storage Settings |
| 134 | + |
| 135 | +ckan.storage_path = /var/lib/ckan |
| 136 | +ckan.max_resource_size = 100 |
| 137 | +ckan.max_image_size = 5 |
| 138 | + |
| 139 | +## Datapusher URL |
| 140 | +ckan.datapusher.url = https://datapusher-giga.l3.ckan.io/ |
| 141 | + |
| 142 | +## AWS S3 settings |
| 143 | + |
| 144 | +ckanext.s3filestore.host_name = https://minio.l3.ckan.io/ |
| 145 | +ckanext.s3filestore.aws_storage_path = vital-strategies |
| 146 | +ckanext.s3filestore.aws_access_key_id = {{AWS_KEY_ID}} |
| 147 | +ckanext.s3filestore.aws_secret_access_key = {{AWS_SECRET_ACCESS_KEY}} |
| 148 | +ckanext.s3filestore.region_name = us-east-1 |
| 149 | +ckanext.s3filestore.aws_bucket_name = ckan |
| 150 | +ckanext.s3filestore.signature_version = s3v4 |
| 151 | + |
| 152 | +## Query Tool Settings |
| 153 | + |
| 154 | +ckanext.querytool.groups = brazil:Brazil,china:营养,mexico:Mexico |
| 155 | +ckanext.querytool.map_osm_url = https://cartodb-basemaps-{s}.global.ssl.fastly.net/light.nolabels/{z}/{x}/{y}{r}.png |
| 156 | +ckanext.querytool.map_osm_attribute = © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="http://cartodb.com/attributions">CartoDB</a> |
| 157 | +ckanext.querytool.allow_nav_bar = False |
| 158 | + |
| 159 | +## xloader settings |
| 160 | + |
| 161 | +ckanext.xloader.jobs_db.uri = postgresql://postgres:123456@jobs-db/postgres |
| 162 | + |
| 163 | +# Resource Proxy settings |
| 164 | +# Preview size limit, default: 1MB |
| 165 | +#ckan.resource_proxy.max_file_size = 1048576 |
| 166 | +# Size of chunks to read/write. |
| 167 | +#ckan.resource_proxy.chunk_size = 4096 |
| 168 | + |
| 169 | +## Activity Streams Settings |
| 170 | + |
| 171 | +#ckan.activity_streams_enabled = true |
| 172 | +#ckan.activity_list_limit = 31 |
| 173 | +#ckan.activity_streams_email_notifications = true |
| 174 | +#ckan.email_notifications_since = 2 days |
| 175 | +ckan.hide_activity_from_users = %(ckan.site_id)s |
| 176 | + |
| 177 | + |
| 178 | +## Email settings |
| 179 | + |
| 180 | +#email_to = errors@example.com |
| 181 | +#error_email_from = ckan-errors@example.com |
| 182 | +smtp.server = smtp.mandrillapp.com:587 |
| 183 | +smtp.starttls = True |
| 184 | +smtp.user = {{SMTP_USER}} |
| 185 | +smtp.password = {{SMTP_PASSWORD}} |
| 186 | +smtp.mail_from = hosting@viderum.com |
| 187 | + |
| 188 | +### |
| 189 | + |
| 190 | +## datajson settings |
| 191 | +ckanext.datajson.inventory_links_enabled = True |
| 192 | +ckanext.datajson.url_enabled = False |
| 193 | + |
| 194 | +## Harvest settings |
| 195 | +ckan.harvest.mq.type = redis |
| 196 | +ckan.harvest.mq.hostname = redis |
| 197 | +ckan.harvest.mq.redis_db = 9 |
| 198 | + |
| 199 | +## Sentry settings |
| 200 | +sentry_dsn = {{SENTRY_DSN}} |
| 201 | +ckan.sentry.configure_logging = True |
| 202 | +ckan.sentry.log_level = ERROR |
| 203 | + |
| 204 | + |
| 205 | +## Logging configuration |
| 206 | +[loggers] |
| 207 | +keys = root, ckan, ckanext |
| 208 | + |
| 209 | +[handlers] |
| 210 | +keys = console |
| 211 | + |
| 212 | +[formatters] |
| 213 | +keys = generic |
| 214 | + |
| 215 | +[logger_root] |
| 216 | +level = WARNING |
| 217 | +handlers = console |
| 218 | + |
| 219 | +[logger_ckan] |
| 220 | +level = INFO |
| 221 | +handlers = console |
| 222 | +qualname = ckan |
| 223 | +propagate = 0 |
| 224 | + |
| 225 | +[logger_ckanext] |
| 226 | +level = DEBUG |
| 227 | +handlers = console |
| 228 | +qualname = ckanext |
| 229 | +propagate = 0 |
| 230 | + |
| 231 | +[handler_console] |
| 232 | +class = StreamHandler |
| 233 | +args = (sys.stderr,) |
| 234 | +level = NOTSET |
| 235 | +formatter = generic |
| 236 | + |
| 237 | +[formatter_generic] |
| 238 | +format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s |
0 commit comments