nix-stuff/roles/server/traefik.nix
2023-08-31 17:18:47 +02:00

16 lines
278 B
Nix

{ config, ... }:
{
services.traefik = {
enable = true;
staticConfigOptions = {
# Enable the web ui
api.insecure = true;
api.dashboard = true;
entryPoints = {
http = { address = ":80"; };
};
};
};
networking.firewall.allowedTCPPorts = [ 80 8080 ];
}