nix-stuff/roles/server/traefik.nix

23 lines
409 B
Nix

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