add plausible

This commit is contained in:
jacekpoz 2024-05-23 17:53:03 +02:00
parent a699dc6a64
commit 83dcdbbb58
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
5 changed files with 38 additions and 0 deletions

View file

@ -11,6 +11,7 @@ _: {
#./minecraft.nix #./minecraft.nix
./ntfy-sh.nix ./ntfy-sh.nix
./owncast.nix ./owncast.nix
./plausible.nix
#./stalwart.nix #./stalwart.nix
./sudo-parental-control.nix ./sudo-parental-control.nix
#./qbittorrent.nix #./qbittorrent.nix

View file

@ -0,0 +1,35 @@
{
config,
...
}: let
domain = "plausible.jacekpoz.pl";
in {
age.secrets = {
plausible-admin-password.file = ../../../secrets/plausible-admin-password.age;
plausible-secret-keybase.file = ../../../secrets/plausible-secret-keybase.age;
};
services.plausible = {
enable = true;
adminUser = {
activate = true;
name = "afsdjh";
email = "jacekpoz@proton.me";
passwordFile = config.age.secrets.plausible-admin-password.path;
};
server = {
baseUrl = "https://${domain}";
port = 3987;
secretKeybaseFile = config.age.secrets.plausible-secret-keybase.path;
};
};
services.caddy = {
enable = true;
virtualHosts.${domain}.extraConfig = ''
reverse_proxy * localhost:${toString config.services.plausible.server.port}
'';
};
}

Binary file not shown.

Binary file not shown.

View file

@ -17,4 +17,6 @@ in {
"eturnal-turn-secret.age".publicKeys = niks ++ chmura ++ del; "eturnal-turn-secret.age".publicKeys = niks ++ chmura ++ del;
"firefox-syncserver-secrets.age".publicKeys = niks ++ chmura ++ del; "firefox-syncserver-secrets.age".publicKeys = niks ++ chmura ++ del;
"forgejo-runner-token.age".publicKeys = niks ++ chmura ++ del; "forgejo-runner-token.age".publicKeys = niks ++ chmura ++ del;
"plausible-secret-keybase.age".publicKeys = niks ++ chmura ++ del;
"plausible-admin-password.age".publicKeys = niks ++ chmura ++ del;
} }