From b315173cde5b2ca3c427ee0cd8e6130747980f5c Mon Sep 17 00:00:00 2001 From: Brian Lee Date: Wed, 11 Oct 2023 10:26:21 -0700 Subject: [PATCH] Rate limit exclusion for nostr.wine. --- src/policies/rate-limit-policy.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/policies/rate-limit-policy.ts b/src/policies/rate-limit-policy.ts index 959ef00..2eeadcb 100755 --- a/src/policies/rate-limit-policy.ts +++ b/src/policies/rate-limit-policy.ts @@ -29,7 +29,9 @@ const rateLimitPolicy: Policy = async (msg, opts = {}) => { const { interval = 60000, max = 10, - whitelist = [], + whitelist = [ + "51.81.244.81", // nostr.wine broadcast + ], databaseUrl = 'sqlite:///tmp/strfry-rate-limit-policy.sqlite3', } = opts;