1amends "../../config/Service.pkl"
2
3import "../../config/site.pkl" as site
4
5meta { name = "JSON Intake"; launcher = false }
6
7secrets = if (site.domain.endsWith(".test")) new { ["key"] {} } else new {}
8requiredSecrets = if (site.domain.endsWith(".test")) new {} else new { "key" }
9
10container {
11 build = "build"
12 cpu = 100
13 memory = 128
14
15 http {
16 containerPort = 8000
17 subdomain = "intake"
18 checkPath = "/health"
19 }
20
21 volumes {
22 ["/data"] { src = "\(site.cloverRoot)/Documents/Intake"; readOnly = site.cloverReadOnly }
23 }
24
25 env {
26 ["INTAKE_KEY"] = "${secret.own.key}"
27 }
28}