phpipam: move user setting

This commit is contained in:
Sean Buckley 2021-10-26 15:09:44 -04:00
parent 20e79cbe83
commit 4b3a4562d2

View file

@ -17,7 +17,10 @@ let
installPhase = '' installPhase = ''
cp -r "$src" "$out" cp -r "$src" "$out"
chmod +w "$out" chmod +w "$out"
echo '<?php require("config.docker.php"); require("/etc/phpipam_config.php");' >"$out/config.php" echo '<?php
require("config.docker.php");
$db["user"] = "nginx";
require("/etc/phpipam_config.php");' >"$out/config.php"
''; '';
}; };
@ -61,7 +64,6 @@ in
systemd.services = builtins.mapAttrs systemd.services = builtins.mapAttrs
(_: script: { (_: script: {
inherit script; inherit script;
environment.IPAM_DATABASE_USER = "nginx";
serviceConfig.User = "nginx"; serviceConfig.User = "nginx";
startAt = "*:0/15"; startAt = "*:0/15";
}) })
@ -76,7 +78,6 @@ in
phpfpm.pools.www = { phpfpm.pools.www = {
user = "nginx"; user = "nginx";
group = "nginx"; group = "nginx";
phpEnv.IPAM_DATABASE_USER = "nginx";
phpEnv.PHP_INI_SCAN_DIR = "$PHP_INI_SCAN_DIR"; phpEnv.PHP_INI_SCAN_DIR = "$PHP_INI_SCAN_DIR";
phpOptions = '' phpOptions = ''
date.timezone = America/New_York date.timezone = America/New_York