Advertisement
Conzar

ckan test config

Oct 14th, 2019
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # CKAN - Pylons configuration
  3. #
  4. # These are some of the configuration options available for your CKAN
  5. # instance. Check the documentation in 'doc/configuration.rst' or at the
  6. # following URL for a description of what they do and the full list of
  7. # available options:
  8. #
  9. # http://docs.ckan.org/en/latest/maintaining/configuration.html
  10. #
  11. # The %(here)s variable will be replaced with the parent directory of this file
  12. #
  13.  
  14. [DEFAULT]
  15.  
  16. # WARNING: *THIS SETTING MUST BE SET TO FALSE ON A PRODUCTION ENVIRONMENT*
  17. debug = false
  18.  
  19. [server:main]
  20. use = egg:Paste#http
  21. host = 0.0.0.0
  22. port = 5000
  23.  
  24. [app:main]
  25. use = egg:ckan
  26. full_stack = true
  27. cache_dir = /tmp/%(ckan.site_id)s/
  28. beaker.session.key = ckan
  29.  
  30. app_instance_uuid =
  31.  
  32. # repoze.who config
  33. who.config_file = %(here)s/who.ini
  34. who.log_level = warning
  35. who.log_file = %(cache_dir)s/who_log.ini
  36.  
  37. ## Database Settings
  38. sqlalchemy.url = postgresql://ckan_default:pass@localhost/ckan_default
  39.  
  40. ckan.datastore.write_url=postgresql://ckan_default:pass@localhost/datastore_default
  41. ckan.datastore.read_url=postgresql://datastore_default:pass@localhost/datastore_default
  42.  
  43. # PostgreSQL' full-text search parameters
  44. ckan.datastore.default_fts_lang = english
  45. ckan.datastore.default_fts_index_method = gist
  46.  
  47. ## Site Settings
  48.  
  49. ckan.site_url =https://192.168.33.11
  50. #ckan.use_pylons_response_cleanup_middleware = true
  51.  
  52. ## Authorization Settings
  53.  
  54. ckan.auth.anon_create_dataset = false
  55. ckan.auth.create_unowned_dataset = false
  56. ckan.auth.create_dataset_if_not_in_organization = false
  57. ckan.auth.user_create_groups = false
  58. ckan.auth.user_create_organizations = false
  59. ckan.auth.user_delete_groups = true
  60. ckan.auth.user_delete_organizations = true
  61. ckan.auth.create_user_via_api = false
  62. ckan.auth.create_user_via_web = true
  63. ckan.auth.roles_that_cascade_to_sub_groups = admin
  64.  
  65.  
  66. ## Search Settings
  67.  
  68. ckan.site_id = ckan
  69. solr_url=http://127.0.0.1:8983/solr/ckan
  70.  
  71.  
  72. ## Plugins Settings
  73.  
  74. # Note: Add ``datastore`` to enable the CKAN DataStore
  75. #       Add ``datapusher`` to enable DataPusher
  76. #       Add ``resource_proxy`` to enable resorce proxying and get around the
  77. #       same origin policy
  78. ckan.plugins = stats text_view image_view recline_view recline_grid_view recline_map_view recline_graph_view datastore resource_proxy datapusher webpage_view harvest ckan_harvester dcat dcat_rdf_harvester dcat_json_harvester dcat_json_interface structured_data geo_view geojson_view wmts_view repeating ldap lcrnz spatial_metadata spatial_query zip_view
  79.  
  80. # Define which views should be created by default
  81. # (plugins must be loaded in ckan.plugins)
  82. ckan.views.default_views = image_view text_view recline_view webpage_view geo_view geojson_view wmts_view zip_view
  83.  
  84. ckan.preview.text_formats=nex nxs r py pyw txt text plain text/plain
  85.  
  86. ## Front-End Settings
  87. ckan.site_title = Test CKAN Repository
  88. ckan.site_logo = /base/images/site_logo.png
  89. ckan.site_description =A shared environment
  90. ckan.favicon = /base/images/ckan.ico
  91. ckan.gravatar_default = identicon
  92. ckan.preview.direct = png jpg gif
  93. ckan.preview.loadable = html htm rdf+xml owl+xml xml n3 n-triples turtle plain atom csv tsv rss txt json
  94. ckan.display_timezone = Pacific/Auckland
  95.  
  96. ckan.recaptcha.version=2
  97. ckan.recaptcha.publickey=
  98. ckan.recaptcha.privatekey=
  99. licenses_group_url=file:///etc/ckan/default/license.json
  100.  
  101. ## Internationalisation Settings
  102. ckan.locale_default = en
  103. 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
  104. ckan.locales_offered =
  105. ckan.locales_filtered_out = en_GB
  106.  
  107. ## Feeds Settings
  108.  
  109. ckan.feeds.authority_name =
  110. ckan.feeds.date =
  111. ckan.feeds.author_name =
  112. ckan.feeds.author_link =
  113.  
  114. ## Storage Settings
  115.  
  116. ckan.storage_path=/var/lib/ckan/default
  117. ckan.max_resource_size=1000
  118. ckan.max_image_size=15
  119.  
  120. ## Datapusher settings
  121.  
  122. # Make sure you have set up the DataStore
  123.  
  124. ckan.datapusher.formats=csv tsv application/csv application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
  125. ckan.datapusher.url=http://0.0.0.0:8800
  126.  
  127. # Resource Proxy settings
  128. # Preview size limit, default: 1MB
  129. ckan.resource_proxy.max_file_size=2000000
  130.  
  131. ## Activity Streams Settings
  132.  
  133. ckan.activity_streams_enabled=true
  134. ckan.activity_streams_email_notifications=false
  135. ckan.hide_activity_from_users = %(ckan.site_id)s
  136.  
  137. ## Email settings
  138.  
  139. email_to=
  140. smtp.server=
  141. smtp.mail_from=
  142.  
  143. ## Logging configuration
  144. ckan.harvest.mq.type=redis
  145. ckanext.spatial.search_backend=solr
  146. ckan.simple_search=false
  147. extra_public_paths=/var/local/ckan
  148. ckan.site_intro_text=
  149. ckan.site_about=Pilot data catalogue
  150. ckan.main_css=/base/css/custom.css
  151. ckan.preview_json_formats=json
  152. ckan.preview_xml_formats=xml rdf rdf+xml owl+xml atom rss gpx
  153. ckan.preview_image_formats=png jpeg jpg gif svg bmp
  154. ofs.storage_dir=/var/lib/ckan/default
  155. email_from=
  156. ckan.featured_orgs=zdataup
  157. ckan.featured_groups=
  158. ckan.tracking_enabled=true
  159. ckanext.ldap.uri=
  160. ckanext.ldap.base_dn=
  161. ckanext.ldap.search.filter=uid={login}
  162. ckanext.ldap.username=uid
  163. ckanext.ldap.email=mail
  164. ckanext.ldap.fullname=cn
  165. ckanext.ldap.organization.id=
  166. ckanext.ldap.organization.role=member
  167. ckanext.spatial.common_map.type=custom
  168. ckanext.spatial.common_map.custom.url=http://a.tile.openstreetmaps.org/{z}/{x}/{y}.png
  169. ckanext.spatial.common_map.attribution=&copy <a href="http://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors. Tiles provided by <a href="https://maptiles.xyz">MapTiles</a>.
  170. ckanext.geoview.ol_viewer.formats=wms wfs geojson gml kml
  171. ckanext.geoview.gapi_key=
  172. ckanext.geoview.ol_viewer.hide_overlays=false
  173. ckanext.geoview.ol_viewer.default_feature_hoveron=true
  174. [loggers]
  175. keys = root, ckan, ckanext
  176.  
  177. [handlers]
  178. keys = console
  179.  
  180. [formatters]
  181. keys = generic
  182.  
  183. [logger_root]
  184. level = WARNING
  185. handlers = console
  186.  
  187. [logger_ckan]
  188. level = INFO
  189. handlers = console
  190. qualname = ckan
  191. propagate = 0
  192.  
  193. [logger_ckanext]
  194. level = DEBUG
  195. handlers = console
  196. qualname = ckanext
  197. propagate = 0
  198.  
  199. [handler_console]
  200. class = StreamHandler
  201. args = (sys.stderr,)
  202. level = NOTSET
  203. formatter = generic
  204.  
  205. [formatter_generic]
  206. format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement