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:
Henrik Jess Nielsen
2026-10-30 11:03:54 +01:00
parent 8dd435a7d0
commit c0580fefbc

View File

@@ -97,6 +97,17 @@ job "citti" {
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 {
cpu = 200
memory = 256