mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-07-01 23:27:18 +02:00
feat(gustave): init plausible
This commit is contained in:
parent
aaaeee0ac0
commit
6500a1d4f5
2 changed files with 33 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
||||||
./borg.nix
|
./borg.nix
|
||||||
./pages.nix
|
./pages.nix
|
||||||
./readeck.nix
|
./readeck.nix
|
||||||
|
./plausible.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
machine.meta = {
|
machine.meta = {
|
||||||
|
|
32
machines/gustave/plausible.nix
Normal file
32
machines/gustave/plausible.nix
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.plausible = {
|
||||||
|
enable = true;
|
||||||
|
adminUser = {
|
||||||
|
activate = true;
|
||||||
|
email = "analytics@luj.fr";
|
||||||
|
passwordFile = config.age.secrets.plausible-admin-password.path;
|
||||||
|
};
|
||||||
|
server = {
|
||||||
|
baseUrl = "https://probable.luj.fr";
|
||||||
|
port = 8455;
|
||||||
|
secretKeybaseFile = config.age.secrets.plausible-secret-key-base.path;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts = {
|
||||||
|
"probable.luj.fr" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:${toString config.services.plausible.server.port}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
age.secrets = {
|
||||||
|
plausible-admin-password.file = ../../secrets/plausible-password.age;
|
||||||
|
plausible-secret-key-base.file = ../../secrets/plausible-keybase-secret.age;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue