copy nb configuration and modules
This commit is contained in:
parent
1af70a3095
commit
127eab91d5
114 changed files with 9070 additions and 0 deletions
42
utils/modules/plausible/default.nix
Normal file
42
utils/modules/plausible/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
sops.secrets.plausible-admin-password = {
|
||||
sopsFile = ./secrets.yaml;
|
||||
};
|
||||
sops.secrets.plausible-secret = {
|
||||
sopsFile = ./secrets.yaml;
|
||||
};
|
||||
|
||||
services.plausible = {
|
||||
enable = true;
|
||||
releaseCookiePath = "/run/secrets/plausible-release-cookie";
|
||||
server = {
|
||||
secretKeybaseFile = config.sops.secrets.plausible-secret.path;
|
||||
baseUrl = "plausible.cloonar.com";
|
||||
};
|
||||
database.clickhouse = {
|
||||
setup = false;
|
||||
};
|
||||
database.postgres = {
|
||||
dbname = "plausible";
|
||||
};
|
||||
adminUser = {
|
||||
activate = true;
|
||||
email = "plausible@cloonar.com";
|
||||
passwordFile = config.sops.secrets.plausible-admin-password.path;
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.enable = true;
|
||||
services.nginx.virtualHosts."plausible.cloonar.com" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
acmeRoot = null;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:8000";
|
||||
};
|
||||
};
|
||||
|
||||
services.postgresqlBackup.databases = [ "plausible" ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue