mirror of
https://github.com/kmein/niveum
synced 2026-03-22 04:41:07 +01:00
feat(ful): add matomo and backup
This commit is contained in:
42
systems/ful/matomo.nix
Normal file
42
systems/ful/matomo.nix
Normal file
@@ -0,0 +1,42 @@
|
||||
{pkgs, ...}: let
|
||||
inherit (import <niveum/lib>) kieran;
|
||||
in {
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
|
||||
};
|
||||
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = kieran.email;
|
||||
};
|
||||
|
||||
services.matomo = {
|
||||
enable = true;
|
||||
hostname = "matomo.kmein.de";
|
||||
nginx = {
|
||||
serverName = "matomo.kmein.de";
|
||||
};
|
||||
};
|
||||
|
||||
services.mysql = {
|
||||
enable = true;
|
||||
package = pkgs.mariadb;
|
||||
ensureDatabases = ["matomo"];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "matomo";
|
||||
ensurePermissions."matomo.*" = "ALL PRIVILEGES";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
services.mysqlBackup = {
|
||||
enable = true;
|
||||
databases = ["matomo"];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user