summaryrefslogtreecommitdiff
path: root/provider_base/services/webapp.json
blob: 08c7c5b02170eb3656e22b97e9edba55358f050b (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
  "webapp": {
    "admins": [],
    "modules": ["user", "billing", "help"],
    "couchdb_webapp_user": "= global.services[:couchdb].couch.users[:webapp]",
    "customization_dir": "= file_path 'webapp'",
    "client_certificates": "= global.provider.ca.client_certificates",
    "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",
    "api_version": 1,
    "secure": false,
    "git": {
      "source": "https://leap.se/git/leap_web",
      "revision": "origin/master"
    },
    "client_version": "= global.provider.client_version"
  },
  "stunnel": {
    "couch_client": "= stunnel_client(nodes_like_me[:services => :couchdb], global.services[:couchdb].couch.port)"
  },
  "haproxy": {
    "servers": "= haproxy_servers(nodes_like_me[:services => :couchdb], stunnel.couch_client, global.services[:couchdb].couch.port)"
  },
  "definition_files": {
    "provider": "= file :provider_json_template",
    "eip_service": "= file [:eip_service_json_template, 'v'+webapp.api_version.to_s]",
    "soledad_service": "= file [:soledad_service_json_template, 'v'+webapp.api_version.to_s]",
    "smtp_service": "= file [:smtp_service_json_template, 'v'+webapp.api_version.to_s]"
  },
  "service_type": "public_service",
  "api": {
    "domain": "= 'api.' + domain.full_suffix",
    "port": 4430
  },
  "nickserver": {
    "domain": "= 'nicknym.' + domain.full_suffix",
    "couchdb_nickserver_user": "= global.services[:couchdb].couch.users[:nickserver]",
    "port": 6425
  },
  "dns": {
    "aliases": "= [domain.full_suffix, domain.full, api.domain, nickserver.domain]"
  },
  "x509": {
    "use": true,
    "ca_cert": "= file :ca_cert, :missing => 'provider CA. Run `leap cert ca`'",
    "client_ca_cert": "= file :client_ca_cert, :missing => 'Certificate Authority. Run `leap cert ca`'",
    "client_ca_key": "= file :client_ca_key, :missing => 'Certificate Authority. Run `leap cert ca`'",
    "commercial_cert": "= file [:commercial_cert, domain.full_suffix]",
    "commercial_key": "= file [:commercial_key, domain.full_suffix]",
    "commercial_ca_cert": "= try_file :commercial_ca_cert"
  }
}