summaryrefslogtreecommitdiff
path: root/provider_base/services/couchdb.json
blob: 7b649da90d268493503d7177636fd249c7d07c5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  "service_type": "internal_service",
  "x509": {
    "use": true
  },
  "stunnel": {
    "couch_server": "= stunnel_server(couch.port)",
    "bigcouch_replication_server": "= stunnel_server(couch.bigcouch.port)"
  },
  "stunnel": "= nextport = 4000; nodes_like_me[:services => :couchdb].values.inject({}) {|hsh, node| hsh[node.name + node.couch.bigcouch.port.to_s] =    {'accept_port' => nextport.to_s, 'connect' => node.domain.full }; nextport+=1; hsh}",
  "couch": {
    "port": 5984,
    "bigcouch": {
      "port": 4369,
      "cookie": "= secret :bigcouch_cookie"
    },
    "users": {
      "admin": {
        "username": "admin",
        "password": "= secret :couch_admin_password"
      },
      "webapp": {
        "username": "webapp",
        "password": "= secret :couch_webapp_password"
      },
      "ca_daemon": {
        "username": "ca_daemon",
        "password": "= secret :couch_ca_daemon_password"
      }
    }
  }
}