nixos/server/traefik.nix

15 lines
316 B
Nix

{ ... }:
{
services.traefik = {
enable = true;
staticConfigOptions = {
api = { insecure = true; };
entryPoints = {
http = { address = ":80"; };
web = { address = ":30000"; };
};
};
};
networking.firewall = { enable = true; allowedTCPPorts = [ 80 443 30000 ]; };
}