From 866106f86d3f1acddef9cd5887e667b97c5d9416 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Wed, 6 Jan 2021 02:15:38 +0100 Subject: [PATCH] LoutreOS: ajout config php redis --- systems/LoutreOS/services.nix | 2 ++ systems/LoutreOS/web.nix | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/systems/LoutreOS/services.nix b/systems/LoutreOS/services.nix index 8822d0fb8..266d9d1bf 100644 --- a/systems/LoutreOS/services.nix +++ b/systems/LoutreOS/services.nix @@ -35,6 +35,8 @@ in ]; services = { + redis.enable = true; + logrotate = { enable = true; paths = { diff --git a/systems/LoutreOS/web.nix b/systems/LoutreOS/web.nix index 8c54545b6..340077113 100644 --- a/systems/LoutreOS/web.nix +++ b/systems/LoutreOS/web.nix @@ -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