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

139 lines
2.3 KiB
Nix
Raw Normal View History

2023-11-18 16:59:16 +08:00
{ ... }:
{
services.traefik.dynamicConfigOptions.http.routers = {
2024-03-03 10:00:21 +08:00
blog = {
rule = "Host(`sajenim.dev`)";
2023-11-18 16:59:16 +08:00
entryPoints = [
"websecure"
];
middlewares = [
2024-03-03 10:00:21 +08:00
"geoblock"
2023-11-18 16:59:16 +08:00
];
2024-03-03 10:00:21 +08:00
service = "blog";
2023-11-18 16:59:16 +08:00
};
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";
};
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-12-01 05:39:38 +08:00
rule = "Host(`js.kanto.dev`)";
2023-11-18 16:59:16 +08:00
entryPoints = [
"websecure"
];
middlewares = [
"internal"
];
service = "jellyseerr";
};
};
}