organized routes and routes and added rate limiter

This commit is contained in:
Milo Schwartz
2024-10-02 00:04:40 -04:00
parent f1e77dfe42
commit 1a91dbb89c
45 changed files with 241 additions and 181 deletions

View File

@@ -0,0 +1,52 @@
export type DynamicTraefikConfig = {
http?: Http;
};
export type Http = {
routers?: Routers;
services?: Services;
middlewares?: Middlewares;
};
export type Routers = {
[key: string]: Router;
};
export type Router = {
entryPoints: string[];
middlewares: string[];
service: string;
rule: string;
};
export type Services = {
[key: string]: Service;
};
export type Service = {
loadBalancer: LoadBalancer;
};
export type LoadBalancer = {
servers: Server[];
};
export type Server = {
url: string;
};
export type Middlewares = {
[key: string]: MiddlewarePlugin;
};
export type MiddlewarePlugin = {
plugin: Plugin;
};
export type Plugin = {
[key: string]: MiddlewarePluginConfig;
};
export type MiddlewarePluginConfig = {
[key: string]: any;
};