feat: support postgres store for rate limiting
Signed-off-by: Hellgren Heikki <heikki.hellgren@op.fi>
This commit is contained in:
+16
@@ -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';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user