wger: more shit
This commit is contained in:
parent
ff3ea0735c
commit
51bb437838
1 changed files with 7 additions and 2 deletions
|
@ -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}";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue