[traefik] Moves traefik config into the repo

This commit is contained in:
2025-04-07 14:45:58 -07:00
parent a0987c0e11
commit 932f78bfe4
7 changed files with 86 additions and 31 deletions

View File

@@ -17,6 +17,7 @@
./containers/searxng.nix
./containers/shared-postgres.nix
./containers/synapse.nix
./containers/traefik.nix
];
# Enable common container config files in /etc/containers
@@ -72,34 +73,6 @@
havenisms;
in
{
traefik = {
image = "traefik";
autoStart = true;
cmd = [ ];
extraOptions = [
# Proxying Traefik itself
"-l=traefik.enable=true"
"-l=traefik.http.routers.traefik.rule=${localHostRuleHavenisms "proxy"}"
"-l=traefik.http.services.traefik.loadbalancer.server.port=8080"
"-l=homepage.group=Infra"
"-l=homepage.name=Traefik"
"-l=homepage.icon=traefik.svg"
"-l=homepage.href=https://proxy.${havenisms}"
"-l=homepage.description=Reverse proxy"
"-l=homepage.widget.type=traefik"
"-l=homepage.widget.url=http://traefik:8080"
];
ports = [
"443:443"
"80:80"
];
environmentFiles = [
];
volumes = [
"/var/run/podman/podman.sock:/var/run/docker.sock:ro"
"/tank/config/traefik:/etc/traefik"
];
};
jellyfin = {
image = "lscr.io/linuxserver/jellyfin";
autoStart = true;