Move more things into their 'correct' place
This commit is contained in:
parent
ce31f4355e
commit
b69c9dbbbf
9 changed files with 109 additions and 58 deletions
20
nixos/server/transmission.nix
Normal file
20
nixos/server/transmission.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{pkgs, outputs, ...}: {
|
||||
services = {
|
||||
transmission = {
|
||||
enable = true;
|
||||
credentialsFile = pkgs.writeText "credentials" outputs.secrets.transmissionCredFile;
|
||||
openPeerPorts = true;
|
||||
settings = {
|
||||
rpc-authentication-required = true;
|
||||
};
|
||||
};
|
||||
nginx.virtualHosts."torrent.${outputs.secrets.jimDomain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:9091";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue