chore: update
ci-api / test (push) Successful in 21m54s
ci-web / test (push) Successful in 17m37s

This commit is contained in:
Xor290
2026-08-02 15:23:43 +02:00
parent 18707e2b3e
commit b82deee4fb
7 changed files with 144 additions and 24 deletions
@@ -620,6 +620,31 @@ func (h *HelmProvisioner) buildLBTelegramValues(d Demo, cfg ProvisionConfig, bac
dbURL := fmt.Sprintf("postgres://postgres:demo-postgres-pass@%s-postgresql-postgresql:5432/demo_db?sslmode=disable", d.Namespace)
redisURL := fmt.Sprintf("redis://:demo-redis-pass@%s-redis-redis:6379/0", d.Namespace)
lbRepo, lbTag := parseImage(h.lbtelegramImage)
host := fmt.Sprintf("%s.%s", d.Namespace, h.baseDomain)
env := map[string]string{
"PORT": "8081",
"ENV": "production",
// URL publique HTTPS de cette démo : requise par lbtelegram (panic
// sinon), utilisée pour enregistrer les webhooks Telegram de chaque
// bot (GATEWAY_URL + "/webhook/" + botID) — voir
// deploy/chart-gestion/lbtelegram/templates/ingressroute.yaml pour
// le routage public correspondant.
"GATEWAY_URL": "https://" + host,
"BOT_COUNT": fmt.Sprintf("%d", botCount),
"BOT1_USERNAME": cfg.LBBot1Username,
"BOT2_USERNAME": cfg.LBBot2Username,
"BACKEND_LINK_URL": backendURL,
}
if cfg.LBStrategy != "" {
env["LB_STRATEGY"] = cfg.LBStrategy
}
if cfg.LBJWTTTLSeconds != "" {
env["JWT_TTL_SECONDS"] = cfg.LBJWTTTLSeconds
}
if cfg.LBHealthCheckInterval != "" {
env["HEALTH_CHECK_INTERVAL"] = cfg.LBHealthCheckInterval
}
return map[string]interface{}{
"image": map[string]interface{}{
@@ -627,14 +652,9 @@ func (h *HelmProvisioner) buildLBTelegramValues(d Demo, cfg ProvisionConfig, bac
"tag": lbTag,
"pullPolicy": "Always",
},
"env": map[string]string{
"PORT": "8081",
"ENV": "production",
"BOT_COUNT": fmt.Sprintf("%d", botCount),
"BOT1_USERNAME": cfg.LBBot1Username,
"BOT2_USERNAME": cfg.LBBot2Username,
"BACKEND_LINK_URL": backendURL,
},
"host": host,
"traefikNamespace": sharedTraefikNamespace,
"env": env,
"secrets": map[string]string{
"BOT1_TOKEN": cfg.LBBot1Token,
"BOT2_TOKEN": cfg.LBBot2Token,