fix: [nomad-step-5] edge caddy task fails to clone Forgejo from 127.0.0.1:3000 under bridge network (#1034)
All checks were successful
All checks were successful
This commit is contained in:
parent
2648c401f4
commit
ada27759de
1 changed files with 15 additions and 0 deletions
|
|
@ -225,6 +225,21 @@ EOT
|
||||||
read_only = false
|
read_only = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ── Forge URL via Nomad service discovery (issue #1034) ──────────
|
||||||
|
# Resolves forgejo service address/port dynamically for bridge network
|
||||||
|
# compatibility. Template-scoped to dispatcher task (Nomad doesn't
|
||||||
|
# propagate templates across tasks).
|
||||||
|
template {
|
||||||
|
destination = "local/forge.env"
|
||||||
|
env = true
|
||||||
|
change_mode = "restart"
|
||||||
|
data = <<EOT
|
||||||
|
{{ range service "forgejo" -}}
|
||||||
|
FORGE_URL=http://{{ .Address }}:{{ .Port }}
|
||||||
|
{{- end }}
|
||||||
|
EOT
|
||||||
|
}
|
||||||
|
|
||||||
# ── Vault-templated secrets (S5.1, issue #988) ──────────────────────
|
# ── Vault-templated secrets (S5.1, issue #988) ──────────────────────
|
||||||
# Renders FORGE_TOKEN from Vault KV v2 for ops repo access.
|
# Renders FORGE_TOKEN from Vault KV v2 for ops repo access.
|
||||||
template {
|
template {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue