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
10[httpd]
11;port = 5984
12;ip4_bind_address = 127.0.0.1
13;ip6_bind_address = ::1
14; Options for the MochiWeb HTTP server.
15;server_options = [{backlog, 128}, {acceptor_pool_size, 16}]
16; For more socket options, consult Erlang's module 'inet' man page.
17;socket_options = [{recbuf, 262144}, {sndbuf, 262144}, {nodelay, true}]
18
19; Uncomment next line to trigger basic-auth popup on unauthorized requests.
20;WWW-Authenticate = Basic realm="administrator"
21
22; Uncomment next line to set the configuration modification whitelist. Only
23; whitelisted values may be changed via the /_config URLs. To allow the admin
24; to change this value over HTTP, remember to include {httpd,config_whitelist}
25; itself. Excluding it from the list would require editing this file to update
26; the whitelist.
27;config_whitelist = [{httpd,config_whitelist}, {log,level}, {etc,etc}]
28
29[httpd_global_handlers]
30;_google = {couch_httpd_proxy, handle_proxy_req, <<"http://www.google.com">>}
31
32[log]
33;level = debug
34
35[os_daemons]
36; For any commands listed here, CouchDB will attempt to ensure that
37; the process remains alive while CouchDB runs as well as shut them
38; down when CouchDB exits.
39;foo = /path/to/command -with args
40
41[daemons]
42; enable SSL support by uncommenting the following line and supply the PEM's below.
43; the default ssl port CouchDB listens on is 6984
44; httpsd = {couch_httpd, start_link, [https]}
45
46[ssl]
47;cert_file = /full/path/to/server_cert.pem
48;key_file = /full/path/to/server_key.pem
49
50; To enable Virtual Hosts in CouchDB, add a vhost = path directive. All requests to
51; the Virual Host will be redirected to the path. In the example below all requests
52; to http://example.com/ are redirected to /database.
53; If you run CouchDB on a specific port, include the port number in the vhost:
54; example.com:5984 = /database
55
56[vhosts]
57;example.com = /database/
58
59[update_notification]
60;unique notifier name=/full/path/to/exe -with "cmd line arg"
61
62; To create an admin account uncomment the '[admins]' section below and add a
63; line in the format 'username = password'. When you next start CouchDB, it
64; will change the password to a hash (so that your passwords don't linger
65; around in plain-text files). You can add more admin accounts with more
66; 'username = password' lines. Don't forget to restart CouchDB after
67; changing this.
68[admins]
69;admin = mysecretpassword
70