fixup
This commit is contained in:
parent
ec2e0a7a00
commit
06bdd89018
2 changed files with 3 additions and 7 deletions
|
@ -26,10 +26,6 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
|
||||||
"d /var/lib/nginx-sockets 0777 root root"
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.firewall.interfaces =
|
networking.firewall.interfaces =
|
||||||
let
|
let
|
||||||
interfaces = lib.mapAttrsToList (_: value: lib.attrsets.attrByPath [ "matchConfig" "Name" ] null value) config.systemd.network.networks ++ [ "tailscale0" ];
|
interfaces = lib.mapAttrsToList (_: value: lib.attrsets.attrByPath [ "matchConfig" "Name" ] null value) config.systemd.network.networks ++ [ "tailscale0" ];
|
||||||
|
|
|
@ -22,10 +22,10 @@
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
|
RuntimeDirectory = "socat-prowlarr";
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
NetworkNamespacePath = "/var/run/netns/wg";
|
NetworkNamespacePath = "/var/run/netns/wg";
|
||||||
UMask = "000";
|
ExecStart = "${pkgs.socat}/bin/socat -d -d UNIX-LISTEN:/run/socat-prowlarr/prowlarr.sock,unlink-early,fork TCP4:127.0.0.1:9696";
|
||||||
ExecStart = "${pkgs.socat}/bin/socat -d -d UNIX-LISTEN:/var/lib/nginx-sockets/prowlarr.sock,unlink-early,fork TCP4:127.0.0.1:9696";
|
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
proxyPass = "http://unix:/var/lib/nginx-sockets/prowlarr.sock:/";
|
proxyPass = "http://unix:/run/socat-prowlarr/prowlarr.sock:/";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue