| 1 | amends "../../config/Service.pkl" |
| 2 | |
| 3 | import "../../config/site.pkl" as site |
| 4 | |
| 5 | local host = module.container.http.hostname |
| 6 | |
| 7 | name = "OTA" |
| 8 | tagline = "Over-the-air installs for signed iOS builds" |
| 9 | launcher = false |
| 10 | stageIsolation = "fresh" |
| 11 | |
| 12 | secrets { ["upload_token"] {} } |
| 13 | |
| 14 | container { |
| 15 | build = "build" |
| 16 | readOnlyRoot = true |
| 17 | cpu = 100 |
| 18 | memory = 256 |
| 19 | |
| 20 | http { |
| 21 | containerPort = 8080 |
| 22 | subdomain = "ota" |
| 23 | checkPath = "/health" |
| 24 | } |
| 25 | |
| 26 | volumes { ["/data"] {} } |
| 27 | |
| 28 | env { |
| 29 | ["OTA_ROOT"] = "/data" |
| 30 | ["OTA_ORIGIN"] = "https://\(host)" |
| 31 | ["OTA_UPLOAD_TOKEN"] = "${secret.own.upload_token}" |
| 32 | } |
| 33 | } |