[goatcounter] Adds back the rewrite for count.js
This commit is contained in:
@@ -12,13 +12,13 @@ in
|
|||||||
volumes = [
|
volumes = [
|
||||||
"goatcounter-data:/home/goatcounter/goatcounter-data"
|
"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.middlewares.strip-analytics.stripprefix.prefixes" = "/analytics";
|
# "traefik.http.routers.www-terakoda-com-goatcounter.middlewares" = "strip-analytics";
|
||||||
# "traefik.http.routers.www-terakoda-com-goatcounter.middlewares" = "strip-analytics";
|
# Host the script on www.terakoda.com so that it is easy to fetch
|
||||||
# "traefik.http.routers.www-terakoda-com-goatcounter.rule" =
|
"traefik.http.routers.www-terakoda-com-goatcounter.rule" =
|
||||||
# "(PathPrefix(`/analytics`) || PathPrefix(`/count`) || Path(`/count`)) && ${hostRule "www" terakoda}";
|
"PathPrefix(`/count`) && ${hostRule "www" terakoda}";
|
||||||
# "traefik.http.routers.www-terakoda-com-goatcounter.service" = "goatcounter";
|
"traefik.http.routers.www-terakoda-com-goatcounter.service" = "goatcounter";
|
||||||
# };
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user