- Removed `adminUser` configuration from plausible as it no longer exists upstream - Removed `signald` as it no longer exists upstream
41 lines
800 B
Nix
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;
|
|
};
|
|
}
|