dotfiles.nix/nixos/viridian/services/traefik/routers.nix

29 lines
467 B
Nix
Raw Normal View History

2023-11-18 16:59:16 +08:00
{ ... }:
{
services.traefik.dynamicConfigOptions.http.routers = {
traefik-dashboard = {
rule = "Host(`traefik.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
2023-11-20 06:41:07 +08:00
"admin"
2023-11-18 16:59:16 +08:00
];
service = "api@internal";
};
ender1 = {
rule = "Host(`e1.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
"admin"
];
service = "ender1";
};
2023-11-18 16:59:16 +08:00
};
}