RateLimit
import type { RateLimit } from "https://gitlab.com/soapbox-pub/strfry-policies/-/raw/develop/mod.ts";
Policy options for rateLimitPolicy
.
interface RateLimit {
databaseUrl?: string;
interval?: number;
max?: number;
whitelist?: string[];
}§Properties
§
databaseUrl?: string
[src]Database connection string. Default: sqlite:///tmp/strfry-rate-limit-policy.sqlite3
§
interval?: number
[src]How often (ms) to check whether max
has been exceeded. Default: 60000
(1 minute).