diff --git a/magpie/configuration.nix b/magpie/configuration.nix index 27fb36c..b31f0fc 100644 --- a/magpie/configuration.nix +++ b/magpie/configuration.nix @@ -3,6 +3,7 @@ pkgs, lib, project-cloud, + goatcounter, ... }: { imports = []; @@ -44,6 +45,7 @@ usbutils wget zip + goatcounter.packages.aarch64-linux.goatcounter ]; programs.mosh.enable = true; @@ -99,6 +101,18 @@ 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 = { enable = true; package = pkgs.nextcloud27; @@ -177,6 +191,15 @@ 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 = {