1amends "../../config/Service.pkl"
2
3import "../../config/site.pkl" as site
4
5local host = module.container.http.hostname
6
7name = "OTA"
8tagline = "Over-the-air installs for signed iOS builds"
9launcher = false
10stageIsolation = "fresh"
11
12secrets { ["upload_token"] {} }
13
14container {
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}