2024-07-16 18:05:48 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2021-01-19 00:14:57 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
# Miniflux configuration
|
|
|
|
services.miniflux = {
|
|
|
|
enable = true;
|
2022-06-06 23:12:54 +02:00
|
|
|
adminCredentialsFile = config.age.secrets.miniflux.path;
|
2021-01-19 00:14:57 +01:00
|
|
|
config = {
|
|
|
|
BASE_URL = "https://rss.coolneng.duckdns.org";
|
2024-07-16 18:05:48 +02:00
|
|
|
DISABLE_HSTS = 1;
|
2021-01-19 00:14:57 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Php-fpm pool for Wallabag
|
|
|
|
services.phpfpm.pools.wallabag = {
|
|
|
|
user = "nginx";
|
|
|
|
group = "nginx";
|
|
|
|
settings = {
|
2021-02-03 05:28:10 +01:00
|
|
|
"listen.owner" = config.services.nginx.user;
|
|
|
|
"listen.group" = config.services.nginx.group;
|
|
|
|
"listen.mode" = 600;
|
|
|
|
"pm" = "ondemand";
|
2021-01-19 00:14:57 +01:00
|
|
|
"pm.max_children " = 4;
|
|
|
|
"pm.max_requests" = 32;
|
2024-07-16 18:05:48 +02:00
|
|
|
"env[WALLABAG_DATA]" = config.environment.variables.WALLABAG_DATA;
|
2021-01-19 00:14:57 +01:00
|
|
|
};
|
2022-05-02 01:55:28 +02:00
|
|
|
phpEnv."PATH" = lib.makeBinPath [ pkgs.php ];
|
2021-01-19 00:14:57 +01:00
|
|
|
};
|
2021-02-03 05:28:10 +01:00
|
|
|
|
|
|
|
# Set environment variable pointing to wallabag configuration directory
|
|
|
|
environment.variables.WALLABAG_DATA = "/var/lib/wallabag";
|
2022-05-02 01:49:40 +02:00
|
|
|
|
2021-01-19 00:14:57 +01:00
|
|
|
}
|