2023-06-14 04:44:21 -04:00
|
|
|
_: {
|
|
|
|
networking.firewall.allowedTCPPorts = [80 443];
|
|
|
|
services.traefik = {
|
|
|
|
enable = true;
|
|
|
|
dynamicConfigOptions = {
|
|
|
|
http = {
|
|
|
|
routers = {
|
|
|
|
api = {
|
|
|
|
rule = "PathPrefix(`/api/`)";
|
|
|
|
entryPoints = ["websecure"];
|
|
|
|
service = "api@internal";
|
|
|
|
};
|
|
|
|
sonarr = {
|
2023-10-03 15:48:48 -04:00
|
|
|
rule = "Host(`sonarr.internal.flake.sh`)";
|
2023-06-14 04:44:21 -04:00
|
|
|
entryPoints = ["web"];
|
|
|
|
service = "sonarr";
|
|
|
|
};
|
|
|
|
radarr = {
|
2023-10-03 15:48:48 -04:00
|
|
|
rule = "Host(`radarr.internal.flake.sh`)";
|
2023-06-14 04:44:21 -04:00
|
|
|
entryPoints = ["web"];
|
|
|
|
service = "radarr";
|
|
|
|
};
|
2024-01-15 00:01:37 -05:00
|
|
|
readarr = {
|
|
|
|
rule = "Host(`readarr.internal.flake.sh`)";
|
|
|
|
entryPoints = ["web"];
|
|
|
|
service = "readarr";
|
|
|
|
};
|
|
|
|
lidarr = {
|
|
|
|
rule = "Host(`lidarr.internal.flake.sh`)";
|
|
|
|
entryPoints = ["web"];
|
|
|
|
service = "lidarr";
|
|
|
|
};
|
2024-01-09 00:26:20 -05:00
|
|
|
bazarr = {
|
|
|
|
rule = "Host(`bazarr.internal.flake.sh`)";
|
2023-12-13 11:21:48 -05:00
|
|
|
entryPoints = ["web"];
|
2024-01-09 00:26:20 -05:00
|
|
|
service = "bazarr";
|
2023-12-13 11:21:48 -05:00
|
|
|
};
|
|
|
|
whisparr = {
|
|
|
|
rule = "Host(`whisparr.internal.flake.sh`)";
|
|
|
|
entryPoints = ["web"];
|
|
|
|
service = "whisparr";
|
|
|
|
};
|
2023-06-14 04:44:21 -04:00
|
|
|
prowlarr = {
|
2023-10-03 15:48:48 -04:00
|
|
|
rule = "Host(`prowlarr.internal.flake.sh`)";
|
2023-06-14 04:44:21 -04:00
|
|
|
entrypoints = ["web"];
|
|
|
|
service = "prowlarr";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
services = {
|
|
|
|
sonarr.loadBalancer.servers = [{url = "http://localhost:8989";}];
|
|
|
|
radarr.loadBalancer.servers = [{url = "http://localhost:7878";}];
|
2024-01-15 00:01:37 -05:00
|
|
|
readarr.loadBalancer.servers = [{url = "http://localhost:8787";}];
|
|
|
|
lidarr.loadBalancer.servers = [{url = "http://localhost:8686";}];
|
2024-01-09 00:26:20 -05:00
|
|
|
bazarr.loadBalancer.servers = [{url = "http://localhost:6767";}];
|
2023-12-13 11:21:48 -05:00
|
|
|
whisparr.loadBalancer.servers = [{url = "http://localhost:6969";}];
|
2023-06-14 04:44:21 -04:00
|
|
|
prowlarr.loadBalancer.servers = [{url = "http://localhost:9696";}];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
staticConfigOptions = {
|
|
|
|
log.level = "DEBUG";
|
|
|
|
api.dashboard = false;
|
|
|
|
api.insecure = false;
|
|
|
|
global = {
|
|
|
|
checkNewVersion = false;
|
|
|
|
sendAnonymousUsage = false;
|
|
|
|
};
|
|
|
|
entryPoints = {
|
|
|
|
websecure = {
|
|
|
|
address = ":443";
|
|
|
|
forwardedHeaders.insecure = true;
|
|
|
|
};
|
|
|
|
web = {
|
|
|
|
address = ":80";
|
|
|
|
forwardedHeaders.insecure = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|