add traefik dashboard
nixos config pipeline / show-flake (push) Successful in 19s
nixos config pipeline / deploy (push) Successful in 8s

This commit is contained in:
smayzy
2025-09-02 15:49:10 +02:00
parent fe057f88e5
commit 7ffe9399e7
4 changed files with 23 additions and 4 deletions
+12 -2
View File
@@ -41,7 +41,7 @@ in
networking.defaultGateway = net.gateway;
networking.nameservers = net.dns;
networking.firewall.allowedTCPPorts = [ 8080 80 443 880 4443 ];
networking.firewall.allowedTCPPorts = [ 80 443 880 4443 ];
systemd.services.traefik.serviceConfig.EnvironmentFile = [
"/run/secrets/traefik-cf-tk"
@@ -55,7 +55,6 @@ in
};
api = {
dashboard = true;
insecure = true;
};
entryPoints = {
local = {
@@ -75,6 +74,7 @@ in
cloudflare = {
acme = {
email = "smayzy@smayzy.ovh";
storage = "/var/lib/traefik/acme.json";
dnsChallenge = {
provider = "cloudflare";
resolvers = [ "192.168.1.202" ];
@@ -86,6 +86,16 @@ in
};
dynamicConfigOptions = {
http = {
routers = {
traefik = {
rule = "Host(`traefik.internal.smayzy.ovh`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))";
entryPoints = [ "localSec" ];
service = "api@internal";
tls.certResolver = "cloudflare";
};
};
};
};
};
};