wger: more shit

This commit is contained in:
eyjhb 2024-12-05 20:05:21 +01:00
parent ff3ea0735c
commit 51bb437838
No known key found for this signature in database
GPG key ID: 609F508E3239F920

View file

@ -172,6 +172,7 @@ in {
services.redis.servers.wger = { services.redis.servers.wger = {
enable = true; enable = true;
user = wger_user; user = wger_user;
appendOnly = true;
}; };
# setup users # setup users
@ -180,7 +181,10 @@ in {
isSystemUser = true; isSystemUser = true;
group = wger_user; group = wger_user;
}; };
users.groups."${wger_user}".gid = 738; users.groups."${wger_user}" = {
gid = 738;
members = [ config.users.users.nginx.name ];
};
# nginx # nginx
services.nginx.virtualHosts."${svc_domain}" = config.mine.shared.lib.authelia.mkProtectedWebsite { 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".proxyPass = "http://localhost:${builtins.toString port}";
locations."/static".root = "${wgerpkgs}/share"; 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}"; locations."/api".proxyPass = "http://localhost:${builtins.toString port}";
}; };