From 51bb43783897636e35176a1ef1607a22bc0c3af4 Mon Sep 17 00:00:00 2001 From: eyjhb Date: Thu, 5 Dec 2024 20:05:21 +0100 Subject: [PATCH] wger: more shit --- machines/gerd/services/wger/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/machines/gerd/services/wger/default.nix b/machines/gerd/services/wger/default.nix index 0469306..a7824a3 100644 --- a/machines/gerd/services/wger/default.nix +++ b/machines/gerd/services/wger/default.nix @@ -172,6 +172,7 @@ in { services.redis.servers.wger = { enable = true; user = wger_user; + appendOnly = true; }; # setup users @@ -180,7 +181,10 @@ in { isSystemUser = true; group = wger_user; }; - users.groups."${wger_user}".gid = 738; + users.groups."${wger_user}" = { + gid = 738; + members = [ config.users.users.nginx.name ]; + }; # nginx services.nginx.virtualHosts."${svc_domain}" = config.mine.shared.lib.authelia.mkProtectedWebsite { @@ -196,7 +200,8 @@ in { # locations."/static".proxyPass = "http://localhost:${builtins.toString port}"; locations."/static".root = "${wgerpkgs}/share"; - locations."/media".proxyPass = "http://localhost:${builtins.toString port}"; + # locations."/media".proxyPass = "http://localhost:${builtins.toString port}"; + locations."/media".root = "${statedir}"; locations."/api".proxyPass = "http://localhost:${builtins.toString port}"; };