upgrade php in static sites to 8.1
This commit is contained in:
parent
391c22385e
commit
a830dfa3a4
|
@ -52,6 +52,8 @@ in {
|
|||
locations."~ \.php$".extraConfig = mkIf site.php ''
|
||||
fastcgi_pass unix:${config.services.phpfpm.pools."${domain}".socket};
|
||||
fastcgi_index index.php;
|
||||
include ${pkgs.nginx}/conf/fastcgi_params;
|
||||
include ${pkgs.nginx}/conf/fastcgi.conf;
|
||||
'';
|
||||
locations."/".index = mkIf site.php "index.php index.html";
|
||||
forceSSL = true;
|
||||
|
@ -79,6 +81,7 @@ in {
|
|||
"pm.max_spare_servers" = 25;
|
||||
};
|
||||
phpEnv."PATH" = lib.makeBinPath [ pkgs.unstable.php ];
|
||||
phpPackage = pkgs.unstable.php;
|
||||
};
|
||||
}) sites);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue