Commit ad5cf7427088

Vincent Demeester <vincent@sbr.pm>
2025-12-12 16:44:07
feat(homelab): Add Traefik dashboard and route Home Assistant
- Enable Traefik dashboard for monitoring reverse proxy status - Route home.sbr.pm to Home Assistant instance at 192.168.1.181:8123 - Add DNS entries for both traefik.sbr.pm and home.sbr.pm Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 9614796
Changed files (2)
systems/rhea/extra.nix
@@ -42,6 +42,12 @@
       enable = true;
 
       staticConfigOptions = {
+        # API and Dashboard
+        api = {
+          dashboard = true;
+          insecure = false;
+        };
+
         # Entry points
         entryPoints = {
           web = {
@@ -215,12 +221,19 @@
                 paperless = mkRouter "paperless" [ "paperless.sbr.pm" ];
                 grafana = mkRouter "grafana" [ "grafana.sbr.pm" ];
                 dav = mkRouter "dav" [ "dav.sbr.pm" ];
+                # Traefik dashboard
+                traefik-dashboard = {
+                  rule = "Host(`traefik.sbr.pm`)";
+                  service = "api@internal";
+                  entryPoints = [ "websecure" ];
+                  tls.certResolver = "letsencrypt";
+                };
               };
             services =
               syncthingServices
               // localHttpServices
               // {
-                home = mkService "http://${builtins.head globals.machines.athena.net.ips}:8080";
+                home = mkService "http://${builtins.head globals.machines.hass.net.ips}:8123";
                 kiwix = mkService "http://${builtins.head globals.machines.sakhalin.net.ips}:8080";
                 n8n = mkService "http://${builtins.head globals.machines.sakhalin.net.ips}:5678";
                 paperless = mkService "http://${builtins.head globals.machines.sakhalin.net.ips}:8000";
globals.nix
@@ -524,6 +524,8 @@ _: {
       aliases = [ "s" ];
     };
     homepage.host = "rhea";
+    # Traefik dashboard
+    traefik.host = "rhea";
     # Music streaming on aion (routed through rhea/traefik)
     music.host = "rhea";
     navidrome.host = "rhea";
@@ -531,6 +533,8 @@ _: {
     dav.host = "rhea";
     # MQTT on demeter (routed through rhea/traefik)
     mqtt.host = "rhea";
+    # Home Assistant on hass (routed through rhea/traefik)
+    home.host = "rhea";
     # Services on sakhalin (routed through rhea/traefik)
     kiwix.host = "rhea";
     n8n.host = "rhea";