Rate limit exclusion for nostr.wine.

This commit is contained in:
Brian Lee 2023-10-11 10:26:21 -07:00
parent b7a422eebc
commit b315173cde

View File

@ -29,7 +29,9 @@ const rateLimitPolicy: Policy<RateLimit> = async (msg, opts = {}) => {
const { const {
interval = 60000, interval = 60000,
max = 10, max = 10,
whitelist = [], whitelist = [
"51.81.244.81", // nostr.wine broadcast
],
databaseUrl = 'sqlite:///tmp/strfry-rate-limit-policy.sqlite3', databaseUrl = 'sqlite:///tmp/strfry-rate-limit-policy.sqlite3',
} = opts; } = opts;