snowflake/hosts/yuki/services/traefik.nix

69 lines
2 KiB
Nix
Raw Normal View History

2023-06-12 00:46:43 -04:00
_: {
networking.firewall.allowedTCPPorts = [80 443];
2023-06-11 18:24:13 -04:00
services.traefik = {
enable = true;
dynamicConfigOptions = {
http = {
routers = {
api = {
rule = "PathPrefix(`/api/`)";
entryPoints = ["websecure"];
service = "api@internal";
};
2023-11-11 16:27:11 -05:00
homepage = {
rule = "Host(`dashboard.internal.flake.sh`)";
2023-06-14 03:58:30 -04:00
entrypoints = ["web"];
2023-11-11 16:27:11 -05:00
service = "homepage";
2023-06-14 03:58:30 -04:00
};
stash = {
rule = "Host(`stash.internal.flake.sh`)";
entrypoints = ["web"];
service = "stash";
};
2023-09-17 14:06:53 -04:00
jellyfin = {
rule = "Host(`jellyfin.internal.flake.sh`)";
2023-09-17 14:06:53 -04:00
entrypoints = ["web"];
service = "jellyfin";
};
jellyseerr = {
rule = "Host(`jellyseerr.internal.flake.sh`)";
2023-09-17 14:06:53 -04:00
entrypoints = ["web"];
service = "jellyseerr";
};
2023-11-11 16:27:11 -05:00
wallos = {
rule = "Host(`wallos.internal.flake.sh`)";
entrypoints = ["web"];
service = "wallos";
};
2023-06-11 18:24:13 -04:00
};
services = {
stash.loadBalancer.servers = [{url = "http://localhost:9999";}];
2023-11-11 16:27:11 -05:00
homepage.loadBalancer.servers = [{url = "http://localhost:7676";}];
2023-09-17 14:06:53 -04:00
jellyfin.loadBalancer.servers = [{url = "http://localhost:8096";}];
jellyseerr.loadBalancer.servers = [{url = "http://localhost:5055";}];
2023-11-11 16:27:11 -05:00
wallos.loadBalancer.servers = [{url = "http://localhost:8282";}];
2023-06-11 18:24:13 -04:00
};
};
};
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;
};
2023-06-11 18:24:13 -04:00
};
};
};
}