mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-30 06:29:23 +02:00
added traefik config provider endpoint
This commit is contained in:
parent
a67463a518
commit
07bf2059c6
10 changed files with 134 additions and 472 deletions
52
server/traefik-config-provider/configSchema.ts
Normal file
52
server/traefik-config-provider/configSchema.ts
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue