nixos/pangolin: update module to the new Traefik module interface
Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user