summaryrefslogtreecommitdiff
path: root/provider_base
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-04-24 18:04:48 -0700
committerelijah <elijah@riseup.net>2013-04-24 18:04:48 -0700
commit4ed2bb37ea8283f79aecca8b78e80b141e9eff50 (patch)
treebcfae0217321ffbab9212e65ecfe159d58deaa9a /provider_base
parent2bd18fcad2e1446388948ed0b98232d93564b8ad (diff)
provider base - service definitions are now versioned (requires new leap_cli)
Diffstat (limited to 'provider_base')
-rw-r--r--provider_base/files/service-definitions/v1/eip-service.json.erb (renamed from provider_base/files/service-definitions/eip-service.json.erb)0
-rw-r--r--provider_base/services/webapp.json5
2 files changed, 3 insertions, 2 deletions
diff --git a/provider_base/files/service-definitions/eip-service.json.erb b/provider_base/files/service-definitions/v1/eip-service.json.erb
index ca42bef5..ca42bef5 100644
--- a/provider_base/files/service-definitions/eip-service.json.erb
+++ b/provider_base/files/service-definitions/v1/eip-service.json.erb
diff --git a/provider_base/services/webapp.json b/provider_base/services/webapp.json
index f87b0833..e4926ba7 100644
--- a/provider_base/services/webapp.json
+++ b/provider_base/services/webapp.json
@@ -11,7 +11,8 @@
"allow_limited_certs": "= global.provider.service.allow_limited_bandwidth",
"allow_unlimited_certs": "= global.provider.service.allow_unlimited_bandwidth",
"allow_anonymous_certs": "= global.provider.service.allow_anonymous",
- "secret_token": "= secret :webapp_secret_token"
+ "secret_token": "= secret :webapp_secret_token",
+ "api_version": 1
},
"stunnel": {
"couch_client": "= stunnel_client(nodes_like_me[:services => :couchdb], global.services[:couchdb].couch.port)"
@@ -21,7 +22,7 @@
},
"definition_files": {
"provider": "= file :provider_json_template",
- "eip_service": "= file :eip_service_json_template"
+ "eip_service": "= file [:eip_service_json_template, 'v'+webapp.api_version.to_s]"
},
"service_type": "public_service",
"api": {