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 ''
|
locations."~ \.php$".extraConfig = mkIf site.php ''
|
||||||
fastcgi_pass unix:${config.services.phpfpm.pools."${domain}".socket};
|
fastcgi_pass unix:${config.services.phpfpm.pools."${domain}".socket};
|
||||||
fastcgi_index index.php;
|
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";
|
locations."/".index = mkIf site.php "index.php index.html";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
@ -79,6 +81,7 @@ in {
|
||||||
"pm.max_spare_servers" = 25;
|
"pm.max_spare_servers" = 25;
|
||||||
};
|
};
|
||||||
phpEnv."PATH" = lib.makeBinPath [ pkgs.unstable.php ];
|
phpEnv."PATH" = lib.makeBinPath [ pkgs.unstable.php ];
|
||||||
|
phpPackage = pkgs.unstable.php;
|
||||||
};
|
};
|
||||||
}) sites);
|
}) sites);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue