[goatcounter] Adds goatcounter.terakoda.com
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
./containers/dm-companion.nix
|
||||
./containers/freshrss.nix
|
||||
./containers/gitea.nix
|
||||
./containers/goatcounter.nix
|
||||
./containers/grafana.nix
|
||||
./containers/jobhunt.nix
|
||||
./containers/mariadb.nix
|
||||
|
||||
24
system/hosts/mcp/containers/goatcounter.nix
Normal file
24
system/hosts/mcp/containers/goatcounter.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ config, ... }:
|
||||
let
|
||||
inherit (import ./lib.nix config) mkContainer terakoda;
|
||||
in
|
||||
{
|
||||
virtualisation.oci-containers.containers.goatcounter = mkContainer {
|
||||
image = "arp242/goatcounter";
|
||||
hostName = "goatcounter";
|
||||
domain = terakoda;
|
||||
public = true;
|
||||
port = 8080;
|
||||
volumes = [
|
||||
"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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user