Skip to content

Commit

Permalink
add php-fpm
Browse files Browse the repository at this point in the history
  • Loading branch information
batonac committed Sep 17, 2024
1 parent 05842d1 commit 0f8edd7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
1 change: 0 additions & 1 deletion Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
}

root * /var/www/html/
encode br zstd gzip

# Include any extra directives
{$CADDY_SERVER_EXTRA_DIRECTIVES}
Expand Down
6 changes: 6 additions & 0 deletions php-fpm.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[global]
pid = /run/php-fpm.pid
error_log = /dev/stderr
daemonize = no

include=/etc/php-fpm.d/*.conf
9 changes: 5 additions & 4 deletions wordpress.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ let
argon2Support = true;
cgotoSupport = false;
embedSupport = false; # Not needed for standard PHP-FPM
staticSupport = false;
ipv6Support = true;
zendSignalsSupport = false;
zendMaxExecutionTimersSupport = true;
staticSupport = false;
systemdSupport = false;
valgrindSupport = false;
zendMaxExecutionTimersSupport = false;
zendSignalsSupport = true;
ztsSupport = false; # Not needed for standard PHP-FPM

}).overrideAttrs (oldAttrs: rec {
Expand Down Expand Up @@ -198,6 +198,7 @@ pkgs.dockerTools.buildLayeredImage {
# Create PHP-FPM configuration
mkdir -p etc/php-fpm.d
cp ${./www.conf} etc/php-fpm.d/www.conf;
cp ${./php-fpm.conf} etc/php-fpm.conf
cp ${./www.conf} etc/php-fpm.d/www.conf
'';
}

0 comments on commit 0f8edd7

Please sign in to comment.