| 1 | amends "../../config/Service.pkl" |
| 2 | |
| 3 | import "../../config/site.pkl" as site |
| 4 | |
| 5 | meta { name = "JSON Intake"; launcher = false } |
| 6 | |
| 7 | secrets = if (site.domain.endsWith(".test")) new { ["key"] {} } else new {} |
| 8 | requiredSecrets = if (site.domain.endsWith(".test")) new {} else new { "key" } |
| 9 | |
| 10 | container { |
| 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 | } |