nixos/freshrss: fix phpfpm.pool
This commit is contained in:
parent
01b7c60b9c
commit
6290926fed
@ -4,8 +4,6 @@ with lib;
|
||||
let
|
||||
cfg = config.services.freshrss;
|
||||
|
||||
poolName = "freshrss";
|
||||
|
||||
extension-env = pkgs.buildEnv {
|
||||
name = "freshrss-extensions";
|
||||
paths = cfg.extensions;
|
||||
@ -141,8 +139,8 @@ in
|
||||
};
|
||||
|
||||
pool = mkOption {
|
||||
type = types.str;
|
||||
default = poolName;
|
||||
type = types.nullOr types.str;
|
||||
default = "freshrss";
|
||||
description = ''
|
||||
Name of the php-fpm pool to use and setup. If not specified, a pool will be created
|
||||
with default values.
|
||||
@ -235,8 +233,8 @@ in
|
||||
};
|
||||
|
||||
# Set up phpfpm pool
|
||||
services.phpfpm.pools = mkIf (cfg.pool == poolName) {
|
||||
${poolName} = {
|
||||
services.phpfpm.pools = mkIf (cfg.pool != null) {
|
||||
${cfg.pool} = {
|
||||
user = "freshrss";
|
||||
settings = {
|
||||
"listen.owner" = "nginx";
|
||||
|
Loading…
Reference in New Issue
Block a user