snowflake/hosts/yuki/services/traefik.nix

87 lines
2.6 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";
};
2024-01-09 00:25:11 -05:00
searxng = {
rule = "Host(`search.internal.flake.sh`)";
entrypoints = ["web"];
service = "searxng";
};
2024-01-23 22:06:44 -05:00
hass = {
rule = "Host(`hass.internal.flake.sh`)";
entrypoints = ["web"];
service = "hass";
};
2024-01-25 22:59:26 -05:00
miniflux = {
rule = "Host(`news.internal.flake.sh`)";
entrypoints = ["web"];
service = "miniflux";
};
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";}];
2024-01-09 00:25:11 -05:00
searxng.loadBalancer.servers = [{url = "http://localhost:8100";}];
2024-01-23 22:06:44 -05:00
hass.loadBalancer.servers = [{url = "http://localhost:8123";}];
2024-01-25 22:59:26 -05:00
miniflux.loadBalancer.servers = [{url = "http://localhost:9000";}];
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
};
};
};
}