feat(sdk): let a plugin raise its public route rate limit

This commit is contained in:
LukeGus committed 2026-10-15 22:18:48 -05:00
1 parent e166994ec4
commit 5cc65d87cd
7 files changed
+45 -8

No files matched your search

+7
View File
@@ -357,6 +357,13 @@ export interface PluginRouterOptions {
* (multer, a raw body for signature checking, a proxied stream).
*/
rawBody?: boolean;
/**
* Requests per minute one address may make to this plugin's public routes.
* Defaults to 120, which a proxied page loading its own scripts and images
* can pass on its own. Capped at 10000, and an admin's
* TERMIX_PLUGIN_PUBLIC_RATE_LIMIT wins over it.
*/
publicRateLimit?: number;
}
/**