perf: use redis/upstash for ip rate limits (#28694)

This commit is contained in:
Victor Navarro
2026-05-25 16:39:56 +02:00
committed by GitHub
parent b14e7451ab
commit fdff82e6fc
7 changed files with 83 additions and 28 deletions
+2
View File
@@ -250,6 +250,8 @@ new sst.cloudflare.x.SolidStart("Console", {
bucket,
bucketNew,
database,
SECRET.UpstashRedisRestUrl,
SECRET.UpstashRedisRestToken,
AUTH_API_URL,
STRIPE_WEBHOOK_SECRET,
DISCORD_INCIDENT_WEBHOOK_URL,
+3
View File
@@ -8,4 +8,7 @@ export const SECRET = {
R2AccessKey: new sst.Secret("R2AccessKey", "unknown"),
R2SecretKey: new sst.Secret("R2SecretKey", "unknown"),
HoneycombWebhookSecret: new random.RandomPassword("HoneycombWebhookSecret", { length: 24 }),
UpstashRedisRestUrl: new sst.Secret("UpstashRedisRestUrl"),
UpstashRedisRestToken: new sst.Secret("UpstashRedisRestToken"),
}