Advertisement
Guest User

Untitled

a guest
May 13th, 2019
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 6.48 KB | None | 0 0
  1. ~ $ cat production.ini
  2. #
  3. # CKAN - Pylons configuration
  4. #
  5. # These are some of the configuration options available for your CKAN
  6. # instance. Check the documentation in 'doc/configuration.rst' or at the
  7. # following URL for a description of what they do and the full list of
  8. # available options:
  9. #
  10. # http://docs.ckan.org/en/latest/maintaining/configuration.html
  11. #
  12. # The %(here)s variable will be replaced with the parent directory of this file
  13. #
  14.  
  15. [DEFAULT]
  16.  
  17. # WARNING: *THIS SETTING MUST BE SET TO FALSE ON A PRODUCTION ENVIRONMENT*
  18. debug = false
  19.  
  20. [server:main]
  21. use = egg:Paste#http
  22. host = 0.0.0.0
  23. port = 5000
  24.  
  25. [app:main]
  26. use = egg:ckan
  27. full_stack = true
  28. cache_dir = /tmp/%(ckan.site_id)s/
  29. beaker.session.key = ckan
  30.  
  31. # This is the secret token that the beaker library uses to hash the cookie sent
  32. # to the client. `paster make-config` generates a unique value for this each
  33. # time it generates a config file.
  34. beaker.session.secret = giek5u5anKBs1PUBqzKhaX+Bi
  35.  
  36. # `paster make-config` generates a unique value for this each time it generates
  37. # a config file.
  38. app_instance_uuid = 4d7d9de7-1ae9-423a-9e6d-3102f20e34f5
  39.  
  40. # repoze.who config
  41. who.config_file = %(here)s/who.ini
  42. who.log_level = warning
  43. who.log_file = %(cache_dir)s/who_log.ini
  44. # Session timeout (user logged out after period of inactivity, in seconds).
  45. # Inactive by default, so the session doesn't expire.
  46. # who.timeout = 86400
  47.  
  48. ## Database Settings
  49. sqlalchemy.url = postgresql://ckan_default:pass@localhost/ckan_default
  50.  
  51. #ckan.datastore.write_url = postgresql://ckan_default:pass@localhost/datastore_default
  52. #ckan.datastore.read_url = postgresql://datastore_default:pass@localhost/datastore_default
  53.  
  54. # PostgreSQL' full-text search parameters
  55. ckan.datastore.default_fts_lang = english
  56. ckan.datastore.default_fts_index_method = gist
  57.  
  58.  
  59. ## Site Settings
  60.  
  61. ckan.site_url =
  62. #ckan.use_pylons_response_cleanup_middleware = true
  63.  
  64. ## Authorization Settings
  65.  
  66. ckan.auth.anon_create_dataset = false
  67. ckan.auth.create_unowned_dataset = false
  68. ckan.auth.create_dataset_if_not_in_organization = false
  69. ckan.auth.user_create_groups = false
  70. ckan.auth.user_create_organizations = false
  71. ckan.auth.user_delete_groups = true
  72. ckan.auth.user_delete_organizations = true
  73. ckan.auth.create_user_via_api = false
  74. ckan.auth.create_user_via_web = true
  75. ckan.auth.roles_that_cascade_to_sub_groups = admin
  76.  
  77.  
  78. ## Search Settings
  79.  
  80. ckan.site_id = default
  81. #solr_url = http://127.0.0.1:8983/solr
  82.  
  83.  
  84. ## Redis Settings
  85.  
  86. # URL to your Redis instance, including the database to be used.
  87. #ckan.redis.url = redis://localhost:6379/0
  88.  
  89.  
  90. ## CORS Settings
  91.  
  92. # If cors.origin_allow_all is true, all origins are allowed.
  93. # If false, the cors.origin_whitelist is used.
  94. # ckan.cors.origin_allow_all = true
  95. # cors.origin_whitelist is a space separated list of allowed domains.
  96. # ckan.cors.origin_whitelist = http://example1.com http://example2.com
  97.  
  98.  
  99. ## Plugins Settings
  100.  
  101. # Note: Add ``datastore`` to enable the CKAN DataStore
  102. #       Add ``datapusher`` to enable DataPusher
  103. #       Add ``resource_proxy`` to enable resorce proxying and get around the
  104. #       same origin policy
  105. ckan.plugins = envvars image_view text_view recline_view datastore datapusher amplus pages
  106.  
  107. # Define which views should be created by default
  108. # (plugins must be loaded in ckan.plugins)
  109. ckan.views.default_views = image_view text_view recline_view
  110.  
  111. # Customize which text formats the text_view plugin will show
  112. #ckan.preview.json_formats = json
  113. #ckan.preview.xml_formats = xml rdf rdf+xml owl+xml atom rss
  114. #ckan.preview.text_formats = text plain text/plain
  115.  
  116. # Customize which image formats the image_view plugin will show
  117. #ckan.preview.image_formats = png jpeg jpg gif
  118.  
  119. ## Front-End Settings
  120.  
  121. # Uncomment following configuration to enable using of Bootstrap 2
  122. #ckan.base_public_folder = public-bs2
  123. #ckan.base_templates_folder = templates-bs2
  124.  
  125. ckan.site_title = CKAN
  126. ckan.site_logo = /base/images/ckan-logo.png
  127. ckan.site_description =
  128. ckan.favicon = /base/images/ckan.ico
  129. ckan.gravatar_default = identicon
  130. ckan.preview.direct = png jpg gif
  131. ckan.preview.loadable = html htm rdf+xml owl+xml xml n3 n-triples turtle plain atom csv tsv rss txt json
  132. ckan.display_timezone = server
  133.  
  134. # package_hide_extras = for_search_index_only
  135. #package_edit_return_url = http://another.frontend/dataset/<NAME>
  136. #package_new_return_url = http://another.frontend/dataset/<NAME>
  137. #ckan.recaptcha.publickey =
  138. #ckan.recaptcha.privatekey =
  139. #licenses_group_url = http://licenses.opendefinition.org/licenses/groups/ckan.json
  140. # ckan.template_footer_end =
  141.  
  142.  
  143. ## Internationalisation Settings
  144. ckan.locale_default = en
  145. 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
  146. ckan.locales_offered =
  147. ckan.locales_filtered_out = en_GB
  148.  
  149. ## Feeds Settings
  150.  
  151. ckan.feeds.authority_name =
  152. ckan.feeds.date =
  153. ckan.feeds.author_name =
  154. ckan.feeds.author_link =
  155.  
  156. ## Storage Settings
  157.  
  158. #ckan.storage_path = /var/lib/ckan
  159. #ckan.max_resource_size = 10
  160. #ckan.max_image_size = 2
  161.  
  162. ## Datapusher settings
  163.  
  164. # Make sure you have set up the DataStore
  165.  
  166. #ckan.datapusher.formats = csv xls xlsx tsv application/csv application/vnd.ms-excel application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
  167. #ckan.datapusher.url = http://127.0.0.1:8800/
  168. #ckan.datapusher.assume_task_stale_after = 3600
  169.  
  170. # Resource Proxy settings
  171. # Preview size limit, default: 1MB
  172. #ckan.resource_proxy.max_file_size = 1048576
  173. # Size of chunks to read/write.
  174. #ckan.resource_proxy.chunk_size = 4096
  175.  
  176. ## Activity Streams Settings
  177.  
  178. #ckan.activity_streams_enabled = true
  179. #ckan.activity_list_limit = 31
  180. #ckan.activity_streams_email_notifications = true
  181. #ckan.email_notifications_since = 2 days
  182. ckan.hide_activity_from_users = %(ckan.site_id)s
  183.  
  184.  
  185. ## Email settings
  186.  
  187. #email_to = errors@example.com
  188. #error_email_from = ckan-errors@example.com
  189. #smtp.server = localhost
  190. #smtp.starttls = False
  191. #smtp.user = username@example.com
  192. #smtp.password = your_password
  193. #smtp.mail_from =
  194.  
  195.  
  196. ## Logging configuration
  197. [loggers]
  198. keys = root, ckan, ckanext
  199.  
  200. [handlers]
  201. keys = console
  202.  
  203. [formatters]
  204. keys = generic
  205.  
  206. [logger_root]
  207. level = WARNING
  208. handlers = console
  209.  
  210. [logger_ckan]
  211. level = INFO
  212. handlers = console
  213. qualname = ckan
  214. propagate = 0
  215.  
  216. [logger_ckanext]
  217. level = DEBUG
  218. handlers = console
  219. qualname = ckanext
  220. propagate = 0
  221.  
  222. [handler_console]
  223. class = StreamHandler
  224. args = (sys.stderr,)
  225. level = NOTSET
  226. formatter = generic
  227.  
  228. [formatter_generic]
  229. format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement