feat: use managed Valkey with per-customer key prefix instead of in-cluster valkey
Some checks failed
Build & Release / build (push) Has been cancelled

This commit is contained in:
Ryan Moon
2026-04-03 19:48:33 -05:00
parent e995ae4cd9
commit 4dfa42487f
2 changed files with 3 additions and 2 deletions

View File

@@ -113,11 +113,11 @@ export async function customerRoutes(app: FastifyInstance) {
});
const jwtSecret = crypto.randomBytes(32).toString("hex");
const databaseUrl = `postgresql://${slug}:${user.password}@${PGBOUNCER_HOST}:${PGBOUNCER_PORT}/${slug}`;
const redisUrl = `redis://${namespace}-valkey:6379`;
await createSecret(namespace, "lunarfront-secrets", {
"database-url": databaseUrl,
"jwt-secret": jwtSecret,
"redis-url": redisUrl,
"redis-url": config.managedValkeyUrl,
"redis-key-prefix": slug,
});
await setStep("namespace", "done");
await setStep("secrets", "done");