diff options
Diffstat (limited to 'modules/private/websites/tools/stats/default.nix')
-rw-r--r-- | modules/private/websites/tools/stats/default.nix | 9 |
1 files changed, 4 insertions, 5 deletions
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 | |||
6 | { | 6 | { |
7 | options.myServices.websites.tools.stats.enable = lib.mkEnableOption "Enable stats site"; | 7 | options.myServices.websites.tools.stats.enable = lib.mkEnableOption "Enable stats site"; |
8 | config = lib.mkIf cfg.enable { | 8 | config = lib.mkIf cfg.enable { |
9 | secrets.keys = [ | 9 | secrets.keys = { |
10 | { | 10 | "uami/env" = { |
11 | dest = "umami/env"; | ||
12 | permission = "0400"; | 11 | permission = "0400"; |
13 | text = '' | 12 | text = '' |
14 | PORT=${toString myCfg.listenPort} | 13 | PORT=${toString myCfg.listenPort} |
@@ -16,8 +15,8 @@ in | |||
16 | DATABASE_URL=postgresql://${myCfg.postgresql.user}:${myCfg.postgresql.password}@localhost:${myCfg.postgresql.port}/${myCfg.postgresql.database}?sslmode=disable&host=${myCfg.postgresql.socket} | 15 | DATABASE_URL=postgresql://${myCfg.postgresql.user}:${myCfg.postgresql.password}@localhost:${myCfg.postgresql.port}/${myCfg.postgresql.database}?sslmode=disable&host=${myCfg.postgresql.socket} |
17 | HASH_SALT=${myCfg.hashSalt} | 16 | HASH_SALT=${myCfg.hashSalt} |
18 | ''; | 17 | ''; |
19 | } | 18 | }; |
20 | ]; | 19 | }; |
21 | 20 | ||
22 | services.websites.env.tools.vhostConfs.stats = { | 21 | services.websites.env.tools.vhostConfs.stats = { |
23 | certName = "eldiron"; | 22 | certName = "eldiron"; |