Improve php environment on hikari

This commit is contained in:
Daniel Siepmann 2023-02-02 17:43:37 +01:00
parent 6ed4a7b08a
commit 1afd29b2b0
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -1,9 +1,11 @@
{ pkgs, lib, config, ... }:
# TODO: Move to template / function and call with variables
let
domain = "daniel-siepmann.localhost";
documentRoot = "/var/projects/own/daniel-siepmann.de/project/public/";
databaseName = "own_danielsiepmann";
phpPackage = pkgs.php82;
in {
services = {
httpd.virtualHosts.${domain} = {
@ -71,11 +73,11 @@ in {
};
phpfpm.pools.${domain} = {
inherit (config.services.httpd) user group;
phpPackage = pkgs.php82;
inherit phpPackage;
settings = {
"listen.owner" = config.services.httpd.user;
"listen.group" = config.services.httpd.group;
"pm" = "static";
"pm" = "ondemand";
"pm.max_children" = 15;
"php_admin_value[max_execution_time]" = 240;
"php_admin_value[max_input_vars]" = 1500;