dockerfy traefik

This commit is contained in:
2026-01-31 09:15:58 -06:00
parent 06edfb2795
commit 75586a64f3
3 changed files with 26 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: {
{ config, lib, ... }: {
options.sysconfig.docker.traefik.enable = with lib; mkOption {
type = with types; bool;
@@ -50,6 +50,14 @@
"443"
];
labels = {
"traefik.enable" = "true";
"traefik.http.routers.dashboard.rule" = "Host(`traefik.esotericbytes.com`)";
"traefik.http.routers.dashboard.entrypoints" = "localsecure";
"traefik.http.routers.dashboard.service" = "api@internal";
"traefik.http.routers.dashboard.tls.certResolver" = "cloudflare";
};
log-driver = "journald";
};
systemd.services."docker-traefik" = {