migrate phpfpm to unix sockets
This commit is contained in:
parent
54f9a24a1c
commit
ed07963d09
|
@ -44,7 +44,7 @@ in
|
||||||
# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
|
# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
# With php5-cgi alone:
|
# With php5-cgi alone:
|
||||||
fastcgi_pass ${phpfpmHostPort};
|
fastcgi_pass unix:${config.services.phpfpm.pools."${phppoolName}".socket};
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
|
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
|
||||||
fastcgi_param SERVER_SOFTWARE nginx;
|
fastcgi_param SERVER_SOFTWARE nginx;
|
||||||
|
@ -82,7 +82,6 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
services.phpfpm.pools."${phppoolName}" = {
|
services.phpfpm.pools."${phppoolName}" = {
|
||||||
listen = phpfpmHostPort;
|
|
||||||
user = "${pfaUser}";
|
user = "${pfaUser}";
|
||||||
group = "${pfaGroup}";
|
group = "${pfaGroup}";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
|
@ -57,7 +57,7 @@ in
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
fastcgi_pass ${config.variables.roundcubePhpfpmHostPort};
|
fastcgi_pass unix:${config.services.phpfpm.pools."${poolName}".socket};
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
|
|
||||||
fastcgi_param QUERY_STRING $query_string;
|
fastcgi_param QUERY_STRING $query_string;
|
||||||
|
@ -107,7 +107,6 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
services.phpfpm.pools."${poolName}" = {
|
services.phpfpm.pools."${poolName}" = {
|
||||||
listen = config.variables.roundcubePhpfpmHostPort;
|
|
||||||
user = "${config.variables.roundcubeUser}";
|
user = "${config.variables.roundcubeUser}";
|
||||||
group = "${config.variables.roundcubeUser}";
|
group = "${config.variables.roundcubeUser}";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
Loading…
Reference in a new issue