infrastructure/machines/nixos/compute01/plausible.nix
Tom Hubrecht 9135070292
feat(compute01): Upgrade to nixos-25.05
- Removed `adminUser` configuration from plausible as it no longer
exists upstream
- Removed `signald` as it no longer exists upstream
2025-06-13 11:22:27 +02:00

41 lines
800 B
Nix

# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
{ config, ... }:
let
host = "analytics.dgnum.eu";
port = 8111;
in
{
services.plausible = {
enable = true;
mail = {
email = "analytics@infra.dgnum.eu";
smtp = {
user = "web-services@infra.dgnum.eu";
passwordFile = config.age.secrets."plausible-smtp_password_file".path;
hostPort = 465;
hostAddr = "kurisu.lahfa.xyz";
enableSSL = true;
};
};
server = {
baseUrl = "https://${host}";
inherit port;
disableRegistration = false;
secretKeybaseFile = config.age.secrets."plausible-secret_key_base_file".path;
};
};
dgn-web.simpleProxies.plausible = {
inherit host port;
};
}