e54d8f575a
It fails due to clickhouse anyway, and I don't want it keeping rest of the system from being updated
59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
{ ... }:
|
|
{
|
|
services = {
|
|
plausible = {
|
|
enable = false;
|
|
releaseCookiePath = "/run/agenix/chatgpt_api_key";
|
|
server = {
|
|
secretKeybaseFile = "/run/agenix/enterprise-nix-cache-key-sec";
|
|
disableRegistration = true;
|
|
port = 13231;
|
|
baseUrl = "https://analytics.bhankas.org";
|
|
};
|
|
adminUser = {
|
|
activate = true;
|
|
name = "root";
|
|
email = "admin@bhankas.org";
|
|
passwordFile = "/run/agenix/maildir_relekarpayas_onedrive";
|
|
};
|
|
database = {
|
|
clickhouse.setup = true;
|
|
};
|
|
mail = {
|
|
email = "gandalf@bhankas.org";
|
|
smtp = {
|
|
enableSSL = true;
|
|
hostAddr = "smtp.purelymail.com";
|
|
hostPort = 587;
|
|
passwordFile = "/run/agenix/gandalf_mail";
|
|
user = "gandalf@bhankas.org";
|
|
};
|
|
};
|
|
};
|
|
|
|
nginx = {
|
|
virtualHosts = {
|
|
"analytics.bhankas.org" = {
|
|
addSSL = true;
|
|
enableACME = true;
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:13231";
|
|
proxyWebsockets = false;
|
|
extraConfig =
|
|
"proxy_set_header Host $host;"
|
|
;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
security.acme = {
|
|
certs = {
|
|
"analytics.bhankas.org" = {
|
|
email = "admin@bhankas.org";
|
|
dnsResolver = "1.1.1.1:53";
|
|
};
|
|
};
|
|
};
|
|
}
|