2024-12-12 14:41:43 +01:00
|
|
|
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
|
2023-06-30 18:40:09 +02:00
|
|
|
{ config, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
host = "analytics.dgnum.eu";
|
|
|
|
port = 8111;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
services.plausible = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
mail = {
|
|
|
|
email = "analytics@infra.dgnum.eu";
|
2023-07-02 13:31:42 +02:00
|
|
|
|
2023-06-30 18:40:09 +02:00
|
|
|
smtp = {
|
|
|
|
user = "web-services@infra.dgnum.eu";
|
2024-04-21 21:49:59 +02:00
|
|
|
passwordFile = config.age.secrets."plausible-smtp_password_file".path;
|
2023-06-30 18:40:09 +02:00
|
|
|
hostPort = 465;
|
|
|
|
hostAddr = "kurisu.lahfa.xyz";
|
|
|
|
enableSSL = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
server = {
|
|
|
|
baseUrl = "https://${host}";
|
|
|
|
inherit port;
|
|
|
|
|
2023-07-02 17:17:20 +02:00
|
|
|
disableRegistration = false;
|
|
|
|
|
2024-04-21 21:49:59 +02:00
|
|
|
secretKeybaseFile = config.age.secrets."plausible-secret_key_base_file".path;
|
2023-06-30 18:40:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
adminUser = {
|
2024-04-21 21:49:59 +02:00
|
|
|
passwordFile = config.age.secrets."plausible-admin_user_password_file".path;
|
2023-06-30 18:40:09 +02:00
|
|
|
email = "tom.hubrecht@dgnum.eu";
|
|
|
|
name = "thubrecht";
|
|
|
|
activate = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-10-12 19:30:36 +02:00
|
|
|
dgn-web.simpleProxies.plausible = {
|
|
|
|
inherit host port;
|
2023-06-30 18:40:09 +02:00
|
|
|
};
|
|
|
|
}
|