nixos/pangolin: update module to the new Traefik module interface

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
This commit is contained in:
Fernando Rodrigues
2026-01-24 09:17:48 +11:00
parent 9c757ba685
commit 3191e450f2
+7 -10
View File
@@ -201,13 +201,10 @@ in
isSystemUser = true;
};
};
groups.fossorial = {
members = [
"pangolin"
"gerbil"
"traefik"
];
};
groups.fossorial.members = [
"pangolin"
"gerbil"
];
};
# order is as follows
# "pangolin.service"
@@ -431,9 +428,9 @@ in
services.traefik = {
enable = true;
group = "fossorial";
supplementaryGroups = [ "fossorial" ];
dataDir = "${cfg.dataDir}/config/traefik";
staticConfigOptions = {
static.settings = {
providers.http = {
endpoint = "http://localhost:${toString finalSettings.server.internal_port}/api/v1/traefik-config";
pollInterval = "5s";
@@ -471,7 +468,7 @@ in
};
};
};
dynamicConfigOptions = {
dynamic.files."pangolin".settings = {
http = {
middlewares.redirect-to-https.redirectScheme.scheme = "https";
routers = {