Server/traefik: only enable web ui in specialisation

This commit is contained in:
Toast 2023-12-09 18:31:08 +01:00
parent 486d719d52
commit 3e4b9056f4

View file

@ -1,12 +1,19 @@
{ config, ... }:
{
specialisation.traefikEnableWebUI.configuration.services.traefik = {
staticConfigOptions = {
api = {
# Enable the web ui
insecure = true;
dashboard = true;
};
};
};
services.traefik = {
enable = true;
staticConfigOptions = {
# Enable the web ui
api.insecure = true;
api.dashboard = true;
entryPoints = {
http = { address = ":80"; };
};