[goatcounter] Removes the special rewrite rules. Leaves them as comments for reference
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
let
|
let
|
||||||
inherit (import ./lib.nix config) mkContainer terakoda;
|
inherit (import ./lib.nix config) mkContainer terakoda hostRule;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
virtualisation.oci-containers.containers.goatcounter = mkContainer {
|
virtualisation.oci-containers.containers.goatcounter = mkContainer {
|
||||||
@@ -13,12 +13,12 @@ in
|
|||||||
"goatcounter-data:/home/goatcounter/goatcounter-data"
|
"goatcounter-data:/home/goatcounter/goatcounter-data"
|
||||||
];
|
];
|
||||||
# Sends www.terakoda.com/analytics to goatcounter and strips the /analytics prefix.
|
# 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.rule" =
|
# "traefik.http.routers.www-terakoda-com-goatcounter.middlewares" = "strip-analytics";
|
||||||
# "PathPrefix(`/count.js`) && ${hostRule "www" terakoda}";
|
# "traefik.http.routers.www-terakoda-com-goatcounter.rule" =
|
||||||
# "traefik.http.routers.www-terakoda-com-goatcounter.middlewares" = "strip-analytics";
|
# "(PathPrefix(`/analytics`) || PathPrefix(`/count`) || Path(`/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