2025-04-24 15:02:53 +02:00
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
let
|
2025-04-24 15:48:47 +02:00
|
|
|
domain = "analyze.liv.town";
|
2025-04-24 15:02:53 +02:00
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
services = {
|
|
|
|
|
nginx.virtualHosts.${domain} = {
|
|
|
|
|
forceSSL = true;
|
|
|
|
|
locations."/".proxyPass = "http://127.0.0.1:${toString config.services.plausible.server.port}";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
plausible = {
|
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
|
|
adminUser = {
|
|
|
|
|
# activate is used to skip the email verification of the admin-user that's
|
|
|
|
|
# automatically created by plausible. This is only supported if
|
|
|
|
|
# postgresql is configured by the module. This is done by default, but
|
|
|
|
|
# can be turned off with services.plausible.database.postgres.setup.
|
|
|
|
|
activate = true;
|
|
|
|
|
email = "${config.liv.email}";
|
|
|
|
|
# passwordFile = config.age.secrets.plausibleAdminPassword.path;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
server = {
|
|
|
|
|
baseUrl = "https://${domain}";
|
2025-04-24 15:48:47 +02:00
|
|
|
secretKeybaseFile = "/home/liv/secrets/plausibleKeybaseFile";
|
2025-04-24 15:53:34 +02:00
|
|
|
port = 5829;
|
2025-04-24 15:02:53 +02:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|