Advertisement
Guest User

couchdb config

a guest
Jun 4th, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.23 KB | None | 0 0
  1. ; CouchDB Configuration Settings
  2.  
  3. ; Custom settings should be made in this file. They will override settings
  4. ; in default.ini, but unlike changes made to default.ini, this file won't be
  5. ; overwritten on server upgrade.
  6.  
  7. [couchdb]
  8. ;max_document_size = 4294967296 ; bytes
  9. uuid = e99f9a9c61cdeb70a9f41512269254e9
  10. delayed_commits = false
  11.  
  12. [httpd]
  13. port = 5984
  14. bind_address = 162.243.59.113
  15. ; Options for the MochiWeb HTTP server.
  16. ;server_options = [{backlog, 128}, {acceptor_pool_size, 16}]
  17. ; For more socket options, consult Erlang's module 'inet' man page.
  18. ;socket_options = [{recbuf, 262144}, {sndbuf, 262144}, {nodelay, true}]
  19.  
  20. ; Uncomment next line to trigger basic-auth popup on unauthorized requests.
  21. ;WWW-Authenticate = Basic realm="administrator"
  22.  
  23. ; Uncomment next line to set the configuration modification whitelist. Only
  24. ; whitelisted values may be changed via the /_config URLs. To allow the admin
  25. ; to change this value over HTTP, remember to include {httpd,config_whitelist}
  26. ; itself. Excluding it from the list would require editing this file to update
  27. ; the whitelist.
  28. ;config_whitelist = [{httpd,config_whitelist}, {log,level}, {etc,etc}]
  29. enable_cors = true
  30.  
  31. [query_servers]
  32. ;nodejs = /usr/local/bin/couchjs-node /path/to/couchdb/share/server/main.js
  33.  
  34.  
  35. [httpd_global_handlers]
  36. ;_google = {couch_httpd_proxy, handle_proxy_req, <<"http://www.google.com">>}
  37.  
  38. [couch_httpd_auth]
  39. ; If you set this to true, you should also uncomment the WWW-Authenticate line
  40. ; above. If you don't configure a WWW-Authenticate header, CouchDB will send
  41. ; Basic realm="server" in order to prevent you getting logged out.
  42. ; require_valid_user = false
  43. secret = 0d8bf0f1cdfce90569cc403320069e6c
  44. timeout = 6000
  45. require_valid_user = true
  46.  
  47. [log]
  48. ;level = debug
  49. level = warn
  50.  
  51. [log_level_by_module]
  52. ; In this section you can specify any of the four log levels 'none', 'info',
  53. ; 'error' or 'debug' on a per-module basis. See src/*/*.erl for various
  54. ; modules.
  55. ;couch_httpd = error
  56.  
  57.  
  58. [os_daemons]
  59. ; For any commands listed here, CouchDB will attempt to ensure that
  60. ; the process remains alive. Daemons should monitor their environment
  61. ; to know when to exit. This can most easily be accomplished by exiting
  62. ; when stdin is closed.
  63. ;foo = /path/to/command -with args
  64.  
  65. [daemons]
  66. ; enable SSL support by uncommenting the following line and supply the PEM's below.
  67.  
  68. httpsd = {couch_httpd, start_link, [https]}
  69.  
  70. [ssl]
  71. port = 6984
  72. cacert_file = /etc/couchdb/cert/spartasys_com.ca-bundle
  73. cert_file = /etc/couchdb/cert/spartasys_com.crt
  74. key_file = /etc/couchdb/cert/server.key
  75. ;password = somepassword
  76. ; set to true to validate peer certificates
  77. verify_ssl_certificates = false
  78. ; Path to file containing PEM encoded CA certificates (trusted
  79. ; certificates used for verifying a peer certificate). May be omitted if
  80. ; you do not want to verify the peer.
  81. ;cacert_file = /full/path/to/cacertf
  82. ; The verification fun (optional) if not specified, the default
  83. ; verification fun will be used.
  84. ;verify_fun = {Module, VerifyFun}
  85. ; maximum peer certificate depth
  86. ssl_certificate_max_depth = 1
  87.  
  88. ; To enable Virtual Hosts in CouchDB, add a vhost = path directive. All requests to
  89. ; the Virual Host will be redirected to the path. In the example below all requests
  90. ; to http://example.com/ are redirected to /database.
  91. ; If you run CouchDB on a specific port, include the port number in the vhost:
  92. ; example.com:5984 = /database
  93. [vhosts]
  94. ;example.com = /database/
  95.  
  96. [update_notification]
  97. ;unique notifier name=/full/path/to/exe -with "cmd line arg"
  98.  
  99. ; To create an admin account uncomment the '[admins]' section below and add a
  100. ; line in the format 'username = password'. When you next start CouchDB, it
  101. ; will change the password to a hash (so that your passwords don't linger
  102. ; around in plain-text files). You can add more admin accounts with more
  103. ; 'username = password' lines. Don't forget to restart CouchDB after
  104. ; changing this.
  105. [admins]
  106. ;admin = mysecretpassword
  107. ibloc_admin = -pbkdf2-a7b9ed91e2e261a6427cec8d1d8193edab5eae1a,eb99fdf0213aaa1e26eac68f4e2a29de,10
  108.  
  109. [cors]
  110. content-type = origin
  111. credentials = false
  112. headers = accept, authorization, content-type, origin, referer, cache-control, x-requested-with
  113. methods = GET,PUT,POST,HEAD,DELETE
  114. origins = *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement