about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--hosts/common/server/traefik.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/hosts/common/server/traefik.nix b/hosts/common/server/traefik.nix
index 9882871..0a3d089 100644
--- a/hosts/common/server/traefik.nix
+++ b/hosts/common/server/traefik.nix
@@ -6,12 +6,14 @@ let
   domainPublic = "fcuny.net";
   domainPrivate = "fcuny.xyz";
   mkServiceConfig = name: url: domain: certResolver: {
-    http.routers."${name}" = {
+    http.routers."${name}.${domain}" = {
       rule = "Host(`${name}.${domain}`)";
       service = "${name}";
       tls.certResolver = certResolver;
     };
-    http.services."${name}" = { loadBalancer.servers = [{ url = url; }]; };
+    http.services."${name}.${domain}" = {
+      loadBalancer.servers = [{ url = url; }];
+    };
   };
 in {
   age.secrets.traefik_gcp_sa = {