Push these changes to a branch cause I'm kind of giving up
This commit is contained in:
parent
d9469fc321
commit
e3bacb2d84
229 changed files with 1496 additions and 1479 deletions
14
system/services/transmission/default.nix
Normal file
14
system/services/transmission/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ pkgs, outputs, ... }: {
|
||||
imports = [
|
||||
./nginx
|
||||
];
|
||||
|
||||
services.transmission = {
|
||||
enable = true;
|
||||
credentialsFile = pkgs.writeText "credentials" outputs.secrets.transmissionCredFile;
|
||||
openPeerPorts = true;
|
||||
settings = {
|
||||
rpc-authentication-required = true;
|
||||
};
|
||||
};
|
||||
}
|
10
system/services/transmission/nginx/default.nix
Normal file
10
system/services/transmission/nginx/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ outputs, ... }: {
|
||||
services.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