chore(deploy): inject ANTHROPIC_API_KEY from Consul KV into citti job
Reads citti/anthropic_api_key via keyOrDefault so a missing key never blocks deploy — set it in Consul (copy from blaaai/anthropic_api_key) to enable Danish translation and AI offer matching.
This commit is contained in:
11
citti.nomad
11
citti.nomad
@@ -97,6 +97,17 @@ job "citti" {
|
|||||||
HOST = "0.0.0.0"
|
HOST = "0.0.0.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Claude key for DA translation + AI offer matching (same account as
|
||||||
|
# BlaaAi). keyOrDefault so a missing KV never blocks deploy — without it
|
||||||
|
# offers simply stay German and the token heuristic handles matching.
|
||||||
|
template {
|
||||||
|
data = <<EOT
|
||||||
|
ANTHROPIC_API_KEY={{ keyOrDefault "citti/anthropic_api_key" "" }}
|
||||||
|
EOT
|
||||||
|
destination = "secrets/app.env"
|
||||||
|
env = true
|
||||||
|
}
|
||||||
|
|
||||||
resources {
|
resources {
|
||||||
cpu = 200
|
cpu = 200
|
||||||
memory = 256
|
memory = 256
|
||||||
|
|||||||
Reference in New Issue
Block a user