feat: support postgres store for rate limiting

Signed-off-by: Hellgren Heikki <heikki.hellgren@op.fi>
This commit is contained in:
Hellgren Heikki
2025-02-04 08:06:37 +02:00
parent d6bd7a540d
commit c05a6982ea
7 changed files with 184 additions and 5 deletions
+16
View File
@@ -801,6 +801,22 @@ export interface Config {
client: 'redis';
connection: string;
}
| {
client: 'postgres';
connection:
| string
| {
/**
* @visibility secret
*/
password?: string;
/**
* Other connection settings
* @see https://node-postgres.com/apis/client
*/
[key: string]: unknown;
};
}
| {
client: 'memory';
};