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