Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; CouchDB Configuration Settings
- ; Custom settings should be made in this file. They will override settings
- ; in default.ini, but unlike changes made to default.ini, this file won't be
- ; overwritten on server upgrade.
- [couchdb]
- ;max_document_size = 4294967296 ; bytes
- uuid = e99f9a9c61cdeb70a9f41512269254e9
- delayed_commits = false
- [httpd]
- port = 5984
- bind_address = 162.243.59.113
- ; Options for the MochiWeb HTTP server.
- ;server_options = [{backlog, 128}, {acceptor_pool_size, 16}]
- ; For more socket options, consult Erlang's module 'inet' man page.
- ;socket_options = [{recbuf, 262144}, {sndbuf, 262144}, {nodelay, true}]
- ; Uncomment next line to trigger basic-auth popup on unauthorized requests.
- ;WWW-Authenticate = Basic realm="administrator"
- ; Uncomment next line to set the configuration modification whitelist. Only
- ; whitelisted values may be changed via the /_config URLs. To allow the admin
- ; to change this value over HTTP, remember to include {httpd,config_whitelist}
- ; itself. Excluding it from the list would require editing this file to update
- ; the whitelist.
- ;config_whitelist = [{httpd,config_whitelist}, {log,level}, {etc,etc}]
- enable_cors = true
- [query_servers]
- ;nodejs = /usr/local/bin/couchjs-node /path/to/couchdb/share/server/main.js
- [httpd_global_handlers]
- ;_google = {couch_httpd_proxy, handle_proxy_req, <<"http://www.google.com">>}
- [couch_httpd_auth]
- ; If you set this to true, you should also uncomment the WWW-Authenticate line
- ; above. If you don't configure a WWW-Authenticate header, CouchDB will send
- ; Basic realm="server" in order to prevent you getting logged out.
- ; require_valid_user = false
- secret = 0d8bf0f1cdfce90569cc403320069e6c
- timeout = 6000
- require_valid_user = true
- [log]
- ;level = debug
- level = warn
- [log_level_by_module]
- ; In this section you can specify any of the four log levels 'none', 'info',
- ; 'error' or 'debug' on a per-module basis. See src/*/*.erl for various
- ; modules.
- ;couch_httpd = error
- [os_daemons]
- ; For any commands listed here, CouchDB will attempt to ensure that
- ; the process remains alive. Daemons should monitor their environment
- ; to know when to exit. This can most easily be accomplished by exiting
- ; when stdin is closed.
- ;foo = /path/to/command -with args
- [daemons]
- ; enable SSL support by uncommenting the following line and supply the PEM's below.
- httpsd = {couch_httpd, start_link, [https]}
- [ssl]
- port = 6984
- cacert_file = /etc/couchdb/cert/spartasys_com.ca-bundle
- cert_file = /etc/couchdb/cert/spartasys_com.crt
- key_file = /etc/couchdb/cert/server.key
- ;password = somepassword
- ; set to true to validate peer certificates
- verify_ssl_certificates = false
- ; Path to file containing PEM encoded CA certificates (trusted
- ; certificates used for verifying a peer certificate). May be omitted if
- ; you do not want to verify the peer.
- ;cacert_file = /full/path/to/cacertf
- ; The verification fun (optional) if not specified, the default
- ; verification fun will be used.
- ;verify_fun = {Module, VerifyFun}
- ; maximum peer certificate depth
- ssl_certificate_max_depth = 1
- ; To enable Virtual Hosts in CouchDB, add a vhost = path directive. All requests to
- ; the Virual Host will be redirected to the path. In the example below all requests
- ; to http://example.com/ are redirected to /database.
- ; If you run CouchDB on a specific port, include the port number in the vhost:
- ; example.com:5984 = /database
- [vhosts]
- ;example.com = /database/
- [update_notification]
- ;unique notifier name=/full/path/to/exe -with "cmd line arg"
- ; To create an admin account uncomment the '[admins]' section below and add a
- ; line in the format 'username = password'. When you next start CouchDB, it
- ; will change the password to a hash (so that your passwords don't linger
- ; around in plain-text files). You can add more admin accounts with more
- ; 'username = password' lines. Don't forget to restart CouchDB after
- ; changing this.
- [admins]
- ;admin = mysecretpassword
- ibloc_admin = -pbkdf2-a7b9ed91e2e261a6427cec8d1d8193edab5eae1a,eb99fdf0213aaa1e26eac68f4e2a29de,10
- [cors]
- content-type = origin
- credentials = false
- headers = accept, authorization, content-type, origin, referer, cache-control, x-requested-with
- methods = GET,PUT,POST,HEAD,DELETE
- origins = *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement