1
0
Fork 0
forked from lukas/nixos-config
nixos-config/hosts/blunix/localServices/traefik-dex.nix
2026-05-29 13:26:25 +02:00

37 lines
627 B
Nix

{config, ...}:
{
services.traefik.dynamicConfigOptions = {
http = {
# middlewares = {
# myStripprefix = {
# stripPrefix = {
# prefixes = "/lukas";
# };
# };
# };
routers = {
dex = {
rule = "Host(`dex.${config.domain}`)";
tls = {
certResolver = "cloudflare";
};
service = "dex";
entryPoints = [ "websecure" ];
};
};
services = {
dex = {
loadBalancer = {
servers = [
{ url = "http://127.0.0.1:5556"; }
];
};
};
};
};
};
}