backwards: Add reverse proxy for transmission

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

View File

@@ -12,6 +12,7 @@ in
ssh.enable = true;
git.enable = true;
nginx.enable = true;
syncthing.enable = true;
restic.enable = true;
transmission.enable = true;

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";
};
};
};
};
};
}