2022-09-10 08:15:03 +02:00
|
|
|
{ stdenv
|
|
|
|
, pkgs
|
|
|
|
, utils
|
|
|
|
}:
|
|
|
|
{ configDir ? "/etc/php"
|
|
|
|
, configFile ? "php-fpm.conf"
|
|
|
|
, siteConfigDir ? "${configFile}/conf.d"
|
|
|
|
, logLevel ? "notice"
|
|
|
|
}:
|
2022-09-15 05:46:14 +02:00
|
|
|
{ ... # Depends on whatever
|
|
|
|
}:
|
2022-09-10 08:15:03 +02:00
|
|
|
|
|
|
|
utils.mkConfigFile {
|
|
|
|
name = configFile;
|
|
|
|
dir = configDir;
|
|
|
|
content = ''
|
|
|
|
[global]
|
|
|
|
error_log = syslog
|
|
|
|
syslog.ident = php-fpm
|
|
|
|
log_level = ${logLevel}
|
|
|
|
include=${siteConfigDir}/*
|
|
|
|
'';
|
|
|
|
}
|