github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/images/couchdb/local.ini (about)

     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  [chttpd]
     8  bind_address = 0.0.0.0
     9  
    10  [couchdb]
    11  ; Specify the location of the database in container.
    12  ; Optionally, these directories can be mounted in the host via docker.
    13  database_dir = /opt/couchdb/data/
    14  view_index_dir = /opt/couchdb/data/
    15  uri_file = /opt/couchdb/data/couch.uri
    16  
    17  ; only allow the admin user to connect
    18  ; Uncomment the following statement to enable admin user security.
    19  ; default_security = admin_only
    20  
    21  ; allow delayed commits since peer manages savepoints and flushing to disk
    22  delayed_commits = true
    23  
    24  [cluster]
    25  ; peer maintains a single replica
    26  n = 1
    27  
    28  ; adjust q to set the level of parallelism locally
    29  ; recommended to have no more than 10 million documents/shard (q)
    30  ; for 100 million documents, q=10 -- at a minimum
    31  q = 8
    32  
    33  [log]
    34  writer = file
    35  file = /opt/couchdb/logs/couchdb.log
    36  level = info
    37  
    38  ; Uncomment the following two statements to enable admin user security.
    39  ; [httpd]
    40  ; www-authenticate = Basic realm="administrator"
    41  
    42  [couch_httpd_auth]
    43  ; Uncomment the following statement to enable admin user security.
    44  ; require_valid_user = true
    45  iterations = 1000 ; iterations for password hashing
    46  
    47  ; Uncomment the following two statements to enable admin user security.
    48  ; [admins]
    49  ; admin = admin
    50  
    51  [attachments]
    52  compressible_types = text/*, application/javascript, application/json, application/xml, application/octet-stream
    53