Move traefik routers/services to applicable service/container.nix

This commit is contained in:
♥ Minnie ♥ 2024-06-05 21:14:22 +08:00
parent 54004d97cd
commit d660bf8101
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
15 changed files with 255 additions and 185 deletions

View file

@ -18,4 +18,23 @@
];
};
};
services.traefik.dynamicConfigOptions.http.routers = {
adguard-home = {
rule = "Host(`adguard.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
"admin"
];
service = "adguard-home";
};
};
services.traefik.dynamicConfigOptions.http.services = {
adguard-home.loadBalancer.servers = [
{ url = "http://192.168.1.102:3000"; }
];
};
}

View file

@ -21,4 +21,24 @@
];
};
};
services.traefik.dynamicConfigOptions.http.routers = {
homarr = {
rule = "Host(`kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
"admin"
];
service = "homarr";
};
};
services.traefik.dynamicConfigOptions.http.services = {
homarr.loadBalancer.servers = [
{ url = "http://192.168.1.102:7575"; }
];
};
}

View file

@ -26,4 +26,24 @@
];
};
};
services.traefik.dynamicConfigOptions.http.routers = {
jellyfin = {
rule = "Host(`jellyfin.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
"internal"
];
service = "jellyfin";
};
};
services.traefik.dynamicConfigOptions.http.services = {
jellyfin.loadBalancer.servers = [
{ url = "http://192.168.1.102:8096"; }
];
};
}

View file

@ -17,4 +17,24 @@
];
};
};
services.traefik.dynamicConfigOptions.http.routers = {
jellyseerr = {
rule = "Host(`jellyseerr.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
"internal"
];
service = "jellyseerr";
};
};
services.traefik.dynamicConfigOptions.http.services = {
jellyseerr.loadBalancer.servers = [
{ url = "http://192.168.1.102:5055"; }
];
};
}

View file

@ -20,4 +20,24 @@
];
};
};
services.traefik.dynamicConfigOptions.http.routers = {
lidarr = {
rule = "Host(`lidarr.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
"admin"
];
service = "lidarr";
};
};
services.traefik.dynamicConfigOptions.http.services = {
lidarr.loadBalancer.servers = [
{ url = "http://192.168.1.102:8686"; }
];
};
}

View file

@ -25,4 +25,24 @@
];
};
};
services.traefik.dynamicConfigOptions.http.routers = {
microbin = {
rule = "Host(`bin.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
"internal"
];
service = "microbin";
};
};
services.traefik.dynamicConfigOptions.http.services = {
microbin.loadBalancer.servers = [
{ url = "http://192.168.1.102:8181"; }
];
};
}

View file

@ -18,4 +18,23 @@
];
};
};
services.traefik.dynamicConfigOptions.http.routers = {
prowlarr = {
rule = "Host(`prowlarr.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
"admin"
];
service = "prowlarr";
};
};
services.traefik.dynamicConfigOptions.http.services = {
prowlarr.loadBalancer.servers = [
{ url = "http://192.168.1.102:9696"; }
];
};
}

View file

@ -20,4 +20,24 @@
];
};
};
services.traefik.dynamicConfigOptions.http.routers = {
qbittorrent = {
rule = "Host(`torrent.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
"admin"
];
service = "qbittorrent";
};
};
services.traefik.dynamicConfigOptions.http.services = {
qbittorrent.loadBalancer.servers = [
{ url = "http://192.168.1.102:8080"; }
];
};
}

View file

@ -20,4 +20,23 @@
];
};
};
services.traefik.dynamicConfigOptions.http.routers = {
radarr = {
rule = "Host(`radarr.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
"admin"
];
service = "radarr";
};
};
services.traefik.dynamicConfigOptions.http.services = {
radarr.loadBalancer.servers = [
{ url = "http://192.168.1.102:7878"; }
];
};
}

View file

@ -20,5 +20,24 @@
];
};
};
services.traefik.dynamicConfigOptions.http.routers = {
sonarr = {
rule = "Host(`sonarr.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
"admin"
];
service = "sonarr";
};
};
services.traefik.dynamicConfigOptions.http.services = {
sonarr.loadBalancer.servers = [
{ url = "http://192.168.1.102:8989"; }
];
};
}