magpie: add goatcounter
This commit is contained in:
parent
ea4390d0d5
commit
eeeac073c7
@ -3,6 +3,7 @@
|
||||
pkgs,
|
||||
lib,
|
||||
project-cloud,
|
||||
goatcounter,
|
||||
...
|
||||
}: {
|
||||
imports = [];
|
||||
@ -99,6 +100,19 @@
|
||||
virtualHost.listenPort = 4001;
|
||||
};
|
||||
|
||||
services.goatcounter = {
|
||||
enable = true;
|
||||
environmentFile = "/var/lib/goatcounter.env";
|
||||
extraArgs = ["-listen='*:8002'" "-tls=none" "-debug=all"];
|
||||
database = {
|
||||
automigrate = true;
|
||||
backend = "postgresql";
|
||||
name = "goatcounter";
|
||||
user = "goatcounter";
|
||||
passwordFile = "/var/lib/goatcounter.passwd";
|
||||
};
|
||||
};
|
||||
|
||||
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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user