summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2019-10-28 11:00:11 +0100
committerJeschli <jeschli@gmail.com>2019-11-14 15:36:11 +0100
commitbe39568a2fd25b6b3ce1d4f339e9f53bd4842774 (patch)
treeea25095f0ff466fc75e77730846ccb11fc3f5098 /krebs
parent692ef273e8db563a364da76821cc90df5dec16be (diff)
rtorrent module: set listen.owner in phpfpm
Diffstat (limited to 'krebs')
-rw-r--r--krebs/3modules/rtorrent.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/krebs/3modules/rtorrent.nix b/krebs/3modules/rtorrent.nix
index d59569317..1f88a49e1 100644
--- a/krebs/3modules/rtorrent.nix
+++ b/krebs/3modules/rtorrent.nix
@@ -8,7 +8,7 @@ let
nginx-user = config.services.nginx.user;
nginx-group = config.services.nginx.group;
- fpm-socket = "/var/run/php5-fpm-rutorrent.sock";
+ fpm-socket = config.services.phpfpm.pools.rutorrent.socket;
webdir = rucfg.webdir;
systemd-logfile = cfg.workDir + "/rtorrent-systemd.log";
@@ -332,12 +332,11 @@ let
rutorrent-imp = {
services.phpfpm = {
- # phpfpm does not have an enable option
pools.rutorrent = {
user = nginx-user;
group = nginx-group;
- listen = fpm-socket;
settings = {
+ "listen.owner" = nginx-user;
"pm" = "dynamic";
"pm.max_children" = 5;
"pm.start_servers" = 2;