services.traefik.static.settings

Static configuration for Traefik, written in Nix.

This will be serialized to JSON (which is considered valid YAML) at build, and passed to Traefik as --configfile.

Type
JSON value
Default
{
  entryPoints = {
    http = {
      address = ":80";
    };
  };
}
Example
{
  entryPoints = {
    web = {
      address = ":80";
      http = {
        redirections = {
          entryPoint = {
            permanent = true;
            scheme = "https";
            to = "websecure";
          };
        };
      };
    };
    websecure = {
      address = ":443";
      asDefault = true;
    };
  };
}
Declared
<nixpkgs/nixos/modules/services/web-servers/traefik.nix>