backwards: Add reverse proxy for transmission

This commit is contained in:
Alexander Heldt
2024-09-08 18:59:54 +02:00
parent 54bc15af50
commit c0939cb8fc
2 changed files with 11 additions and 0 deletions

View File

@@ -6,6 +6,8 @@
}:
let
enabled = config.mod.transmission.enable;
nginxEnabled = config.mod.nginx.enable;
in
{
options = {
@@ -42,6 +44,14 @@ in
rpc-password = "{55d884e4042db67313da49e05d7089a368eb64b3Br.3X.Xi";
};
};
nginx = lib.mkIf nginxEnabled {
virtualHosts."ts.ppp.pm" = {
locations."/" = {
proxyPass = "http://localhost:9191";
};
};
};
};
};
}