From dd473de92341007058dc7e2b7f3ba2fcc765a357 Mon Sep 17 00:00:00 2001 From: Hendrik Liebau Date: Sat, 16 Mar 2024 18:07:22 +0100 Subject: [PATCH] Revert "Temporarily disable rate limiting" This reverts commit 127e4c5e0558d79524f749b463c89882e598476c. Redis has been moved to us-east-1. --- cdk/env.ts | 4 ++-- cdk/stack.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cdk/env.ts b/cdk/env.ts index 593f9ab..aee72be 100644 --- a/cdk/env.ts +++ b/cdk/env.ts @@ -14,8 +14,8 @@ const envVariables = z.object({ GOOGLE_SEARCH_API_KEY: z.string(), GOOGLE_SEARCH_SEARCH_ENGINE_ID: z.string(), OPENAI_API_KEY: z.string(), - // UPSTASH_REDIS_REST_TOKEN: z.string(), - // UPSTASH_REDIS_REST_URL: z.string(), + UPSTASH_REDIS_REST_TOKEN: z.string(), + UPSTASH_REDIS_REST_URL: z.string(), }); envVariables.parse(process.env); diff --git a/cdk/stack.ts b/cdk/stack.ts index b919722..ab93c2a 100644 --- a/cdk/stack.ts +++ b/cdk/stack.ts @@ -38,8 +38,8 @@ export class Stack extends cdk.Stack { GOOGLE_SEARCH_SEARCH_ENGINE_ID: process.env.GOOGLE_SEARCH_SEARCH_ENGINE_ID, OPENAI_API_KEY: process.env.OPENAI_API_KEY, - // UPSTASH_REDIS_REST_TOKEN: process.env.UPSTASH_REDIS_REST_TOKEN, - // UPSTASH_REDIS_REST_URL: process.env.UPSTASH_REDIS_REST_URL, + UPSTASH_REDIS_REST_TOKEN: process.env.UPSTASH_REDIS_REST_TOKEN, + UPSTASH_REDIS_REST_URL: process.env.UPSTASH_REDIS_REST_URL, }, }, );