Fix Wallabag service

This commit is contained in:
2021-02-03 05:28:10 +01:00
parent c12fdc15de
commit d91f26bbe1
2 changed files with 26 additions and 15 deletions

View File

@@ -16,12 +16,17 @@
user = "nginx";
group = "nginx";
settings = {
"pm" = "dynamic";
"pm.start_servers" = 2;
"listen.owner" = config.services.nginx.user;
"listen.group" = config.services.nginx.group;
"listen.mode" = 600;
"pm" = "ondemand";
"pm.max_children " = 4;
"pm.min_spare_servers " = 2;
"pm.max_spare_servers" = 4;
"pm.max_requests" = 32;
"env[WALLABAG_DATA]" = "/var/lib/wallabag";
};
phpEnv."PATH" = lib.makeBinPath [ pkgs.php ];
};
# Set environment variable pointing to wallabag configuration directory
environment.variables.WALLABAG_DATA = "/var/lib/wallabag";
}