[goatcounter] Fixes instance for blazestar.net
This commit is contained in:
@@ -81,7 +81,7 @@ in
|
||||
port = 8080;
|
||||
volumes = [
|
||||
"/tank/web/dm.terakoda.com/pb_data:/pb/pb_data"
|
||||
"/tank/web/dm.terakoda.com/pb_migrniations:/pb/pb_migrations:ro"
|
||||
"/tank/web/dm.terakoda.com/pb_migrations:/pb/pb_migrations:ro"
|
||||
];
|
||||
environment = { };
|
||||
extraLabels = {
|
||||
|
||||
@@ -1,47 +1,58 @@
|
||||
{ config, ... }:
|
||||
let
|
||||
inherit (import ./lib.nix config)
|
||||
mkContainer
|
||||
terakoda
|
||||
blazestar
|
||||
hostRule
|
||||
;
|
||||
in
|
||||
{
|
||||
virtualisation.oci-containers.containers.goatcounter-terakoda = mkContainer {
|
||||
image = "arp242/goatcounter";
|
||||
hostName = "goatcounter";
|
||||
domain = terakoda;
|
||||
public = true;
|
||||
port = 8080;
|
||||
volumes = [
|
||||
"goatcounter-data:/home/goatcounter/goatcounter-data"
|
||||
];
|
||||
extraLabels = {
|
||||
# "traefik.http.middlewares.strip-analytics.stripprefix.prefixes" = "/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" =
|
||||
"PathPrefix(`/count`) && ${hostRule "www" terakoda}";
|
||||
"traefik.http.routers.www-terakoda-com-goatcounter.service" = "goatcounter";
|
||||
};
|
||||
};
|
||||
virtualisation.oci-containers.containers.goatcounter-blazestar = mkContainer {
|
||||
image = "arp242/goatcounter";
|
||||
hostName = "goatcounter";
|
||||
domain = blazestar;
|
||||
public = true;
|
||||
port = 8080;
|
||||
volumes = [
|
||||
"goatcounter-data:/home/goatcounter/goatcounter-data"
|
||||
];
|
||||
extraLabels = {
|
||||
# "traefik.http.middlewares.strip-analytics.stripprefix.prefixes" = "/analytics";
|
||||
# "traefik.http.routers.www-blazestar-net-goatcounter.middlewares" = "strip-analytics";
|
||||
# Host the script on www.blazestar.net so that it is easy to fetch
|
||||
"traefik.http.routers.www-blazestar-net-goatcounter.rule" =
|
||||
"PathPrefix(`/count`) && ${hostRule "www" blazestar}";
|
||||
"traefik.http.routers.www-blazestar-net-goatcounter.service" = "goatcounter";
|
||||
imports = [
|
||||
../../../features/web-containers.nix
|
||||
];
|
||||
|
||||
virtualisation.web-containers = {
|
||||
enable = true;
|
||||
containers = {
|
||||
goatcounter-terakoda = {
|
||||
image = "arp242/goatcounter";
|
||||
hostname = "goatcounter";
|
||||
domain = terakoda;
|
||||
public = true;
|
||||
port = 8080;
|
||||
volumes = [
|
||||
"goatcounter-data:/home/goatcounter/goatcounter-data"
|
||||
];
|
||||
extraLabels = {
|
||||
# "traefik.http.middlewares.strip-analytics.stripprefix.prefixes" = "/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" =
|
||||
"PathPrefix(`/count`) && ${hostRule "www" terakoda}";
|
||||
"traefik.http.routers.www-terakoda-com-goatcounter.entrypoints" = "websecure";
|
||||
"traefik.http.routers.www-terakoda-com-goatcounter.service" = "goatcounter-terakoda-com";
|
||||
};
|
||||
};
|
||||
|
||||
goatcounter-blazestar = {
|
||||
image = "arp242/goatcounter";
|
||||
hostname = "goatcounter";
|
||||
domain = blazestar;
|
||||
public = true;
|
||||
port = 8080;
|
||||
volumes = [
|
||||
"goatcounter-data-blazestar:/home/goatcounter/goatcounter-data"
|
||||
];
|
||||
extraLabels = {
|
||||
# "traefik.http.middlewares.strip-analytics.stripprefix.prefixes" = "/analytics";
|
||||
# "traefik.http.routers.www-blazestar-net-goatcounter.middlewares" = "strip-analytics";
|
||||
# Host the script on www.blazestar.net so that it is easy to fetch
|
||||
"traefik.http.routers.www-blazestar-net-goatcounter.rule" =
|
||||
"PathPrefix(`/count`) && ${hostRule "www" blazestar}";
|
||||
"traefik.http.routers.www-blazestar-net-goatcounter.entrypoints" = "websecure";
|
||||
"traefik.http.routers.www-blazestar-net-goatcounter.service" = "goatcounter-blazestar-net@docker";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user