forked from lukas/nixos-config
37 lines
627 B
Nix
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"; }
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|
|
|
|
|