23 lines
397 B
Nix
23 lines
397 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 = ":80"; };
|
|
};
|
|
};
|
|
};
|
|
networking.firewall.allowedTCPPorts = [ 80 8080 ];
|
|
}
|