summaryrefslogtreecommitdiff
path: root/provider_base/services
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-03-28 10:01:32 -0700
committerelijah <elijah@riseup.net>2013-03-28 10:01:32 -0700
commitffda76a47c7f9d5766325d8cdf13d289430456eb (patch)
treef7e1afc76722468442606afe8249f5c035e80375 /provider_base/services
parent92ea0355de872a502d552d89ed88729b9b4fbaa2 (diff)
added stunnel_server
Diffstat (limited to 'provider_base/services')
-rw-r--r--provider_base/services/couchdb.json3
-rw-r--r--provider_base/services/webapp.json7
2 files changed, 9 insertions, 1 deletions
diff --git a/provider_base/services/couchdb.json b/provider_base/services/couchdb.json
index c3502c6b..0c407316 100644
--- a/provider_base/services/couchdb.json
+++ b/provider_base/services/couchdb.json
@@ -3,6 +3,9 @@
"x509": {
"use": true
},
+ "stunnel": {
+ "couch_server": "= stunnel_server(couch.port)"
+ },
"couch": {
"port": 5984,
"bigcouch": {
diff --git a/provider_base/services/webapp.json b/provider_base/services/webapp.json
index 69c015a6..895aa6e3 100644
--- a/provider_base/services/webapp.json
+++ b/provider_base/services/webapp.json
@@ -1,7 +1,6 @@
{
"webapp": {
"modules": ["user", "billing", "help"],
- "couchdb_hosts": "= hostnames nodes[:services => :couchdb][:local => local]",
"couchdb_admin_user": "= global.services[:couchdb].couch.users[:admin]",
"couchdb_webapp_user": "= global.services[:couchdb].couch.users[:webapp]",
"favicon": "= file_path 'branding/favicon.ico'",
@@ -14,6 +13,12 @@
"allow_anonymous_certs": "= global.provider.service.allow_anonymous",
"secret_token": "= secret :webapp_secret_token"
},
+ "stunnel": {
+ "couch_client": "= stunnel_client(nodes_like_me[:services => :couchdb], global.services[:couchdb].couch.port)"
+ },
+ "haproxy": {
+ "local_ports": "= stunnel.couch_client.field(:accept_port)"
+ },
"definition_files": {
"provider": "= file :provider_json_template",
"eip_service": "= file :eip_service_json_template"