Set up Wallabag in a new module
This commit is contained in:
27
modules/information.nix
Normal file
27
modules/information.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Miniflux configuration
|
||||
services.miniflux = {
|
||||
enable = true;
|
||||
adminCredentialsFile = "/var/keys/miniflux/admin";
|
||||
config = {
|
||||
BASE_URL = "https://rss.coolneng.duckdns.org";
|
||||
RUN_MIGRATIONS = "1";
|
||||
};
|
||||
};
|
||||
|
||||
# Php-fpm pool for Wallabag
|
||||
services.phpfpm.pools.wallabag = {
|
||||
user = "nginx";
|
||||
group = "nginx";
|
||||
settings = {
|
||||
"pm" = "dynamic";
|
||||
"pm.start_servers" = 2;
|
||||
"pm.max_children " = 4;
|
||||
"pm.min_spare_servers " = 2;
|
||||
"pm.max_spare_servers" = 4;
|
||||
"pm.max_requests" = 32;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user