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

@ -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"; }
];
};
}