{
  "webapp": {
    "modules": ["user", "billing", "help"],
    "couchdb_hosts": "= nodes[:services => :couchdb][:local => local].field('domain.name')",
    "couchdb_user": "= global.services[:couchdb].couch.users[:webapp]"
  },
  "definition_files": {
    "provider": "= file :provider_json_template",
    "eip_service": "= file :eip_service_json_template"
  },
  "service_type": "public_service",
  "api_domain": "= 'api.' + domain.full_suffix",
  "dns": {
    "aliases": "= [domain.full, api_domain]"
  },
  "x509": {
    "use": true,
    "ca_cert": "= file :ca_cert, :missing => 'provider CA. Run `leap cert ca`'",
    "commercial_cert": "= file [:commercial_cert, global.provider.domain]",
    "commercial_key": "= file [:commercial_key, global.provider.domain]",
    "commercial_ca_cert": "= try_file :commercial_ca_cert"
  }
}