LoutreOS: ajout config php redis
This commit is contained in:
parent
9a52f93a41
commit
866106f86d
@ -35,6 +35,8 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
redis.enable = true;
|
||||||
|
|
||||||
logrotate = {
|
logrotate = {
|
||||||
enable = true;
|
enable = true;
|
||||||
paths = {
|
paths = {
|
||||||
|
@ -57,6 +57,7 @@ in
|
|||||||
services = {
|
services = {
|
||||||
phpfpm.pools.work = {
|
phpfpm.pools.work = {
|
||||||
user = config.users.users.work.name;
|
user = config.users.users.work.name;
|
||||||
|
phpPackage = pkgs.php.withExtensions ({ all, ... }: with all; [ redis filter ]);
|
||||||
settings = {
|
settings = {
|
||||||
"listen.owner" = config.services.nginx.user;
|
"listen.owner" = config.services.nginx.user;
|
||||||
"pm" = "dynamic";
|
"pm" = "dynamic";
|
||||||
@ -214,7 +215,7 @@ in
|
|||||||
dav_ext_methods PROPFIND OPTIONS;
|
dav_ext_methods PROPFIND OPTIONS;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"/_h5ai/public/index.php" = {
|
"~ ^/(_h5ai/public/index|random).php" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
fastcgi_pass unix:${config.services.phpfpm.pools.work.socket};
|
fastcgi_pass unix:${config.services.phpfpm.pools.work.socket};
|
||||||
@ -319,7 +320,9 @@ in
|
|||||||
|
|
||||||
systemd.services.phpfpm-work.serviceConfig = {
|
systemd.services.phpfpm-work.serviceConfig = {
|
||||||
ReadOnlyPaths = "/mnt/medias/iso_linux";
|
ReadOnlyPaths = "/mnt/medias/iso_linux";
|
||||||
ReadWritePaths = "/mnt/medias/iso_linux/_h5ai";
|
ReadWritePaths = [
|
||||||
|
"/mnt/medias/iso_linux/_h5ai"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.site-musique = let
|
systemd.services.site-musique = let
|
||||||
|
Loading…
Reference in New Issue
Block a user