[goatcounter] Adds back the rewrite for count.js

This commit is contained in:
2025-06-17 16:05:21 -07:00
parent 84d05be93b
commit 1bfec397b5

View File

@@ -12,13 +12,13 @@ in
volumes = [
"goatcounter-data:/home/goatcounter/goatcounter-data"
];
# Sends www.terakoda.com/analytics to goatcounter and strips the /analytics prefix.
# extraLabels = {
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";
# };
# Host the script on www.terakoda.com so that it is easy to fetch
"traefik.http.routers.www-terakoda-com-goatcounter.rule" =
"PathPrefix(`/count`) && ${hostRule "www" terakoda}";
"traefik.http.routers.www-terakoda-com-goatcounter.service" = "goatcounter";
};
};
}