magpie: add goatcounter

This commit is contained in:
Asmir A 2024-01-21 14:05:17 +01:00
parent ea4390d0d5
commit 7f622a404e
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2

View File

@ -3,6 +3,7 @@
pkgs, pkgs,
lib, lib,
project-cloud, project-cloud,
goatcounter,
... ...
}: { }: {
imports = []; imports = [];
@ -44,6 +45,7 @@
usbutils usbutils
wget wget
zip zip
goatcounter.packages.aarch64-linux.goatcounter
]; ];
programs.mosh.enable = true; programs.mosh.enable = true;
@ -99,6 +101,18 @@
virtualHost.listenPort = 4001; virtualHost.listenPort = 4001;
}; };
services.goatcounter = {
enable = true;
environmentFile = "/var/lib/goatcounter.env";
extraArgs = ["-listen='*:8002'" "-tls=proxy" ];
database = {
backend = "sqlite";
name = "goatcounter";
user = "goatcounter";
automigrate = true;
};
};
services.nextcloud = { services.nextcloud = {
enable = true; enable = true;
package = pkgs.nextcloud27; package = pkgs.nextcloud27;
@ -177,6 +191,15 @@
proxyPass = "http://localhost:${toString config.services.restya-board.virtualHost.listenPort}"; proxyPass = "http://localhost:${toString config.services.restya-board.virtualHost.listenPort}";
}; };
}; };
virtualHosts."stats.project-cloud.net" = {
quic = true;
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:8002/";
};
};
}; };
services.gitea = { services.gitea = {