Advertisement
Guest User

Untitled

a guest
Oct 18th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.85 KB | None | 0 0
  1. ; etc/couchdb/default.ini.tpl. Generated from default.ini.tpl.in by configure.
  2.  
  3. ; Upgrading CouchDB will overwrite this file.
  4.  
  5. [couchdb]
  6. database_dir = ../var/lib/couchdb
  7. view_index_dir = ../var/lib/couchdb
  8. util_driver_dir = ../lib/couch-1.0.0/priv/lib
  9. max_document_size = 4294967296 ; 4 GB
  10. max_attachment_chunk_size = 4294967296 ; 4GB
  11. os_process_timeout = 5000 ; 5 seconds. for view and external servers.
  12. max_dbs_open = 100
  13. delayed_commits = true ; set this to false to ensure an fsync before 201 Created is returned
  14. uri_file = ../var/lib/couchdb/couch.uri
  15.  
  16. [httpd]
  17. port = 5984
  18. bind_address = 127.0.0.1
  19. max_connections = 2048
  20. authentication_handlers = {couch_httpd_oauth, oauth_authentication_handler}, {couch_httpd_auth, cookie_authentication_handler}, {couch_httpd_auth, default_authentication_handler}
  21. default_handler = {couch_httpd_db, handle_request}
  22. secure_rewrites = true
  23. vhost_global_handlers = _utils, _uuids, _session, _oauth, _users
  24. allow_jsonp = false
  25.  
  26. [log]
  27. file = ../var/log/couchdb/couch.log
  28. level = info
  29. include_sasl = true
  30.  
  31. [couch_httpd_auth]
  32. authentication_db = _users
  33. authentication_redirect = /_utils/session.html
  34. require_valid_user = false
  35. timeout = 600 ; number of seconds before automatic logout
  36. auth_cache_size = 50 ; size is number of cache entries
  37.  
  38. [query_servers]
  39. javascript = ./couchjs.exe ../share/couchdb/server/main.js
  40.  
  41. ; Changing reduce_limit to false will disable reduce_limit.
  42. ; If you think you're hitting reduce_limit with a "good" reduce function,
  43. ; please let us know on the mailing list so we can fine tune the heuristic.
  44. [query_server_config]
  45. reduce_limit = true
  46.  
  47. ; enable external as an httpd handler, then link it with commands here.
  48. ; note, this api is still under consideration.
  49. ; [external]
  50. ; mykey = /path/to/mycommand
  51.  
  52. [daemons]
  53. view_manager={couch_view, start_link, []}
  54. external_manager={couch_external_manager, start_link, []}
  55. db_update_notifier={couch_db_update_notifier_sup, start_link, []}
  56. query_servers={couch_query_servers, start_link, []}
  57. httpd={couch_httpd, start_link, []}
  58. stats_aggregator={couch_stats_aggregator, start, []}
  59. stats_collector={couch_stats_collector, start, []}
  60. uuids={couch_uuids, start, []}
  61. auth_cache={couch_auth_cache, start_link, []}
  62.  
  63. [httpd_global_handlers]
  64. / = {couch_httpd_misc_handlers, handle_welcome_req, <<"Welcome">>}
  65. favicon.ico = {couch_httpd_misc_handlers, handle_favicon_req, "../share/couchdb/www"}
  66.  
  67. _utils = {couch_httpd_misc_handlers, handle_utils_dir_req, "../share/couchdb/www"}
  68. _all_dbs = {couch_httpd_misc_handlers, handle_all_dbs_req}
  69. _active_tasks = {couch_httpd_misc_handlers, handle_task_status_req}
  70. _config = {couch_httpd_misc_handlers, handle_config_req}
  71. _replicate = {couch_httpd_misc_handlers, handle_replicate_req}
  72. _uuids = {couch_httpd_misc_handlers, handle_uuids_req}
  73. _restart = {couch_httpd_misc_handlers, handle_restart_req}
  74. _stats = {couch_httpd_stats_handlers, handle_stats_req}
  75. _log = {couch_httpd_misc_handlers, handle_log_req}
  76. _session = {couch_httpd_auth, handle_session_req}
  77. _oauth = {couch_httpd_oauth, handle_oauth_req}
  78.  
  79. [httpd_db_handlers]
  80. _view_cleanup = {couch_httpd_db, handle_view_cleanup_req}
  81. _compact = {couch_httpd_db, handle_compact_req}
  82. _design = {couch_httpd_db, handle_design_req}
  83. _temp_view = {couch_httpd_view, handle_temp_view_req}
  84. _changes = {couch_httpd_db, handle_changes_req}
  85.  
  86. ; The external module takes an optional argument allowing you to narrow it to a
  87. ; single script. Otherwise the script name is inferred from the first path section
  88. ; after _external's own path.
  89. ; _mypath = {couch_httpd_external, handle_external_req, <<"mykey">>}
  90. ; _external = {couch_httpd_external, handle_external_req}
  91.  
  92. [httpd_design_handlers]
  93. _view = {couch_httpd_view, handle_view_req}
  94. _show = {couch_httpd_show, handle_doc_show_req}
  95. _list = {couch_httpd_show, handle_view_list_req}
  96. _info = {couch_httpd_db, handle_design_info_req}
  97. _rewrite = {couch_httpd_rewrite, handle_rewrite_req}
  98. _update = {couch_httpd_show, handle_doc_update_req}
  99.  
  100. [uuids]
  101. ; Known algorithms:
  102. ; random - 128 bits of random awesome
  103. ; All awesome, all the time.
  104. ; sequential - monotonically increasing ids with random increments
  105. ; First 26 hex characters are random. Last 6 increment in
  106. ; random amounts until an overflow occurs. On overflow, the
  107. ; random prefix is regenerated and the process starts over.
  108. ; utc_random - Time since Jan 1, 1970 UTC with microseconds
  109. ; First 14 characters are the time in hex. Last 18 are random.
  110. algorithm = sequential
  111.  
  112. [stats]
  113. ; rate is in milliseconds
  114. rate = 1000
  115. ; sample intervals are in seconds
  116. samples = [0, 60, 300, 900]
  117.  
  118. [attachments]
  119. compression_level = 8 ; from 1 (lowest, fastest) to 9 (highest, slowest), 0 to disable compression
  120. compressible_types = text/*, application/javascript, application/json, application/xml
  121.  
  122. [replicator]
  123. max_http_sessions = 10
  124. max_http_pipeline_size = 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement