summaryrefslogtreecommitdiff
path: root/provider_base/services/static.json
blob: 2f408ec1a859f9ad4ad9f40fda50ef2d19a2c029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  "static": {
    "formats": "=> try{static.domains.values.collect{|d| try{d.locations.values.collect{|l|l.format}} }.flatten.compact.uniq} || []",
    // include a copy of provider.json in case any of the configured domains happens to match provider.domain
    "bootstrap_files": {
      "domain": "= provider.domain",
      "enabled": "= !! try{static.domains[provider.domain]}",
      "provider_json": "=> static.bootstrap_files.enabled ? try{nodes_like_me[:services => 'webapp'].values.first.definition_files['provider']} : nil",
      "client_version": "= static.bootstrap_files.enabled ? provider.client_version : nil"
    }
  },
  "service_type": "public_service",
  "firewall": {
    "static": {
      "from": "*",
      "to": "= ip_address",
      "port": [80, 443]
    }
  }
}