mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
phpipam: move user setting
This commit is contained in:
parent
20e79cbe83
commit
4b3a4562d2
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue