LoutreOS: ajout config php redis

This commit is contained in:
nyanloutre 2021-01-06 02:15:38 +01:00
parent 9a52f93a41
commit 866106f86d
2 changed files with 7 additions and 2 deletions

View File

@ -35,6 +35,8 @@ in
]; ];
services = { services = {
redis.enable = true;
logrotate = { logrotate = {
enable = true; enable = true;
paths = { paths = {

View File

@ -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