diff options
| author | Max Audron <audron@cocaine.farm> | 2023-11-12 13:51:50 +0100 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2023-11-12 13:52:15 +0100 |
| commit | 1aace801e00cb03afc3a715c8d2432a03cd80f88 (patch) | |
| tree | 93e1ef4ae23866ea3f352283161b9512dd3a3665 /modules/tlmp/default.nix | |
| parent | add fritzbox network wireguard vpn (diff) | |
add rutorrent config
Diffstat (limited to 'modules/tlmp/default.nix')
| -rw-r--r-- | modules/tlmp/default.nix | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/modules/tlmp/default.nix b/modules/tlmp/default.nix index e28506e..f682819 100644 --- a/modules/tlmp/default.nix +++ b/modules/tlmp/default.nix @@ -2,14 +2,23 @@ with self.lib.nginx; { + imports = [ ./rutorrent.nix ]; + security.acme.certs = { "media.cocaine.farm" = { extraDomainNames = [ "*.media.cocaine.farm" ]; }; }; - services.jellyfin = { + services.jellyfin.enable = true; + services.jackett.enable = true; + + services.rutorrent = { enable = true; + hostName = "torrent.media.cocaine.farm"; + rpcSocket = "10.101.131.197"; + plugins = lib.mkForce [ "data" "diskspace" "edit" "erasedata" "theme" "trafic" ]; + nginx.enable = true; }; services.nginx = { @@ -18,8 +27,32 @@ with self.lib.nginx; "media.cocaine.farm" = (proxyDomain "media.cocaine.farm" "http://127.0.0.1:8096/"); "sonarr.media.cocaine.farm" = proxyDomainAuth "media.cocaine.farm" "http://10.101.73.6:80"; "radarr.media.cocaine.farm" = proxyDomainAuth "media.cocaine.farm" "http://10.101.22.234:80"; - "jackett.media.cocaine.farm" = proxyDomainAuth "media.cocaine.farm" "http://10.101.20.23:80"; - # "torrent.media.cocaine.farm" = proxyDomainAuth "media.cocaine.farm" "http://10.101.73.6:80"; + "jackett.media.cocaine.farm" = proxyDomainAuth "media.cocaine.farm" "http://127.0.0.1:9117"; + "torrent.media.cocaine.farm" = { + addSSL = true; + useACMEHost = "media.cocaine.farm"; + + locations."/RPC2" = { + extraConfig = '' + include ${pkgs.nginx}/conf/scgi_params; + scgi_pass 10.101.131.197:5000; + ''; + }; + + + # locations."/" = { + # proxyPass = "http://127.0.0.1"; + # proxyWebsockets = true; + # extraConfig = '' + # proxy_pass_header Authorization; + + # proxy_set_header X-Forwarded-Proto $scheme; + # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + # proxy_set_header Host $host; + # proxy_set_header Upgrade $http_upgrade; + # ''; + # }; + }; }; }; } |
