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