nixos/limesurvey: fix work with phpfpm-rootless mode
This commit is contained in:
parent
59a33f25e5
commit
d49857a885
1 changed files with 4 additions and 4 deletions
|
@ -202,13 +202,13 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
services.phpfpm.pools.limesurvey = {
|
services.phpfpm.pools.limesurvey = {
|
||||||
|
socketName = "limesurvey";
|
||||||
phpPackage = php;
|
phpPackage = php;
|
||||||
listen = "/run/phpfpm/limesurvey.sock";
|
user = "${user}";
|
||||||
|
group = "${group}";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
listen.owner = ${config.services.httpd.user};
|
listen.owner = ${config.services.httpd.user};
|
||||||
listen.group = ${config.services.httpd.group};
|
listen.group = ${config.services.httpd.group};
|
||||||
user = ${user};
|
|
||||||
group = ${group};
|
|
||||||
|
|
||||||
env[LIMESURVEY_CONFIG] = ${limesurveyConfig}
|
env[LIMESURVEY_CONFIG] = ${limesurveyConfig}
|
||||||
|
|
||||||
|
@ -241,7 +241,7 @@ in
|
||||||
<Directory "${pkg}/share/limesurvey">
|
<Directory "${pkg}/share/limesurvey">
|
||||||
<FilesMatch "\.php$">
|
<FilesMatch "\.php$">
|
||||||
<If "-f %{REQUEST_FILENAME}">
|
<If "-f %{REQUEST_FILENAME}">
|
||||||
SetHandler "proxy:unix:/run/phpfpm/limesurvey.sock|fcgi://localhost/"
|
SetHandler "proxy:unix:/run/phpfpm-limesurvey/limesurvey.sock|fcgi://localhost/"
|
||||||
</If>
|
</If>
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue