X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Ftools%2Fstats%2Fdefault.nix;fp=modules%2Fprivate%2Fwebsites%2Ftools%2Fstats%2Fdefault.nix;h=71e31a3c4abea964695471c5e2aa9b585b965b82;hp=5f184bcc40b971c79f9574c81628cbaaf22c6ffd;hb=4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0;hpb=da30ae4ffdd153a1eb32fb86f9ca9a65aa19e4e2 diff --git a/modules/private/websites/tools/stats/default.nix b/modules/private/websites/tools/stats/default.nix index 5f184bc..71e31a3 100644 --- a/modules/private/websites/tools/stats/default.nix +++ b/modules/private/websites/tools/stats/default.nix @@ -6,9 +6,8 @@ in { options.myServices.websites.tools.stats.enable = lib.mkEnableOption "Enable stats site"; config = lib.mkIf cfg.enable { - secrets.keys = [ - { - dest = "umami/env"; + secrets.keys = { + "uami/env" = { permission = "0400"; text = '' PORT=${toString myCfg.listenPort} @@ -16,8 +15,8 @@ in DATABASE_URL=postgresql://${myCfg.postgresql.user}:${myCfg.postgresql.password}@localhost:${myCfg.postgresql.port}/${myCfg.postgresql.database}?sslmode=disable&host=${myCfg.postgresql.socket} HASH_SALT=${myCfg.hashSalt} ''; - } - ]; + }; + }; services.websites.env.tools.vhostConfs.stats = { certName = "eldiron";