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

161 lines
2.7 KiB
Nix
Raw Normal View History

2023-11-18 16:59:16 +08:00
{ ... }:
{
services.traefik.dynamicConfigOptions.http.routers = {
httpd = {
rule = "Host(`sajenim.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
"geoblock"
];
service = "httpd";
};
microbin = {
2023-11-20 06:41:07 +08:00
rule = "Host(`bin.kanto.dev`)";
2023-11-18 16:59:16 +08:00
entryPoints = [
"websecure"
];
middlewares = [
2023-11-20 06:41:07 +08:00
"internal"
2023-11-18 16:59:16 +08:00
];
service = "microbin";
};
homarr = {
rule = "Host(`kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
2023-11-20 06:41:07 +08:00
"admin"
2023-11-18 16:59:16 +08:00
];
service = "homarr";
};
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";
};
adguard-home = {
rule = "Host(`adguard.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
2023-11-20 06:41:07 +08:00
"admin"
2023-11-18 16:59:16 +08:00
];
service = "adguard-home";
};
home-assistant = {
rule = "Host(`home.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
2023-11-20 06:41:07 +08:00
"admin"
2023-11-18 16:59:16 +08:00
];
service = "home-assistant";
};
minecraft = {
rule = "Host(`mc.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
"internal"
];
service = "minecraft";
};
jellyfin = {
rule = "Host(`jf.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
2023-11-20 06:41:07 +08:00
"internal"
2023-11-18 16:59:16 +08:00
];
service = "jellyfin";
};
sonarr = {
rule = "Host(`sonarr.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
2023-11-20 06:41:07 +08:00
"admin"
2023-11-18 16:59:16 +08:00
];
service = "sonarr";
};
radarr = {
rule = "Host(`radarr.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
2023-11-20 06:41:07 +08:00
"admin"
2023-11-18 16:59:16 +08:00
];
service = "radarr";
};
lidarr = {
rule = "Host(`lidarr.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
2023-11-20 06:41:07 +08:00
"admin"
2023-11-18 16:59:16 +08:00
];
service = "lidarr";
};
prowlarr = {
rule = "Host(`prowlarr.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
2023-11-20 06:41:07 +08:00
"admin"
2023-11-18 16:59:16 +08:00
];
service = "prowlarr";
};
qbittorrent = {
rule = "Host(`qbittorrent.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
2023-11-20 06:41:07 +08:00
"admin"
2023-11-18 16:59:16 +08:00
];
service = "qbittorrent";
};
jellyseerr = {
2023-11-20 06:41:07 +08:00
rule ="Host(`js.kanto.dev`)";
2023-11-18 16:59:16 +08:00
entryPoints = [
"websecure"
];
middlewares = [
"internal"
];
service = "jellyseerr";
};
};
}