diff --git a/system/hosts/mcp/containers/goatcounter.nix b/system/hosts/mcp/containers/goatcounter.nix index ff6a6c0..d300169 100644 --- a/system/hosts/mcp/containers/goatcounter.nix +++ b/system/hosts/mcp/containers/goatcounter.nix @@ -1,6 +1,6 @@ { config, ... }: let - inherit (import ./lib.nix config) mkContainer terakoda; + inherit (import ./lib.nix config) mkContainer terakoda hostRule; in { virtualisation.oci-containers.containers.goatcounter = mkContainer { @@ -13,12 +13,12 @@ in "goatcounter-data:/home/goatcounter/goatcounter-data" ]; # Sends www.terakoda.com/analytics to goatcounter and strips the /analytics prefix. - extraLabels = { - # "traefik.http.middlewares.strip-analytics.stripprefix.prefixes" = "/analytics"; - # "traefik.http.routers.www-terakoda-com-goatcounter.rule" = - # "PathPrefix(`/count.js`) && ${hostRule "www" terakoda}"; - # "traefik.http.routers.www-terakoda-com-goatcounter.middlewares" = "strip-analytics"; - # "traefik.http.routers.www-terakoda-com-goatcounter.service" = "goatcounter"; - }; + # extraLabels = { + # "traefik.http.middlewares.strip-analytics.stripprefix.prefixes" = "/analytics"; + # "traefik.http.routers.www-terakoda-com-goatcounter.middlewares" = "strip-analytics"; + # "traefik.http.routers.www-terakoda-com-goatcounter.rule" = + # "(PathPrefix(`/analytics`) || PathPrefix(`/count`) || Path(`/count`)) && ${hostRule "www" terakoda}"; + # "traefik.http.routers.www-terakoda-com-goatcounter.service" = "goatcounter"; + # }; }; }