feat(thor): add plausible, analytics.
This commit is contained in:
parent
7de6b5719e
commit
7528722942
5 changed files with 31 additions and 0 deletions
|
@ -3,5 +3,6 @@
|
|||
./changedetection-io.nix
|
||||
./forgejo.nix
|
||||
./secrets.nix
|
||||
./plausible.nix
|
||||
];
|
||||
}
|
||||
|
|
26
modules/servers/thor/plausible.nix
Normal file
26
modules/servers/thor/plausible.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{config, ...}: {
|
||||
services.plausible = {
|
||||
enable = true;
|
||||
server = {
|
||||
baseUrl = "https://plausible.cronyakatsuki.xyz";
|
||||
secretKeybaseFile = "${config.age.secrets.plausible.path}";
|
||||
};
|
||||
};
|
||||
|
||||
services.traefik.dynamicConfigOptions.http = {
|
||||
services.plausible.loadBalancer.servers = [
|
||||
{
|
||||
url = "http://localhost:8000";
|
||||
}
|
||||
];
|
||||
|
||||
routers.plausible = {
|
||||
rule = "Host(`plausible.cronyakatsuki.xyz`)";
|
||||
tls = {
|
||||
certResolver = "porkbun";
|
||||
};
|
||||
service = "plausible";
|
||||
entrypoints = "websecure";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -4,6 +4,9 @@
|
|||
forgejo-db = {
|
||||
file = ../../../secrets/forgejo-db.age;
|
||||
};
|
||||
plausible = {
|
||||
file = ../../../secrets/plausible.age;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
BIN
secrets/plausible.age
Normal file
BIN
secrets/plausible.age
Normal file
Binary file not shown.
|
@ -20,4 +20,5 @@ in {
|
|||
"rclone.age".publicKeys = systems ++ users;
|
||||
"navidrome.age".publicKeys = systems ++ users;
|
||||
"forgejo-db.age".publicKeys = systems ++ users;
|
||||
"plausible.age".publicKeys = systems ++ users;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue