nix-stuff/roles/server/traefik.nix

26 lines
473 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"; };
};
};
};
systemd.units.tailscaled.requiredBy = [ "traefik.service" ];
networking.firewall.allowedTCPPorts = [ 80 8080 ];
}