From 68438ec7988a2a8b6c9569d0cb28fcd8f59b6e82 Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Wed, 20 Jul 2022 03:15:57 +0100 Subject: [PATCH] Add transmission --- hosts/dingserver/caddy.nix | 9 +++++++++ hosts/dingserver/configuration.nix | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/hosts/dingserver/caddy.nix b/hosts/dingserver/caddy.nix index e54cad3..5757e20 100644 --- a/hosts/dingserver/caddy.nix +++ b/hosts/dingserver/caddy.nix @@ -74,6 +74,15 @@ reverse_proxy localhost:8096 ''; }; + + "dingserver.squirrel-clownfish.ts.net" = { + extraConfig = '' + tls { + get_certificate tailscale + } + reverse_proxy localhost:9091 + ''; + }; }; }; } diff --git a/hosts/dingserver/configuration.nix b/hosts/dingserver/configuration.nix index 61ffddd..67075e1 100644 --- a/hosts/dingserver/configuration.nix +++ b/hosts/dingserver/configuration.nix @@ -37,6 +37,16 @@ services.jellyfin.enable = true; + services.transmission = { + enable = true; + settings = { + rpc-host-whitelist-enable = true; + rpc-host-whitelist = "dingserver.squirrel-clownfish.ts.net"; + }; + }; + + services.tailscale.permitCertUid = "caddy"; + environment.systemPackages = with pkgs; [ helix kitty # For terminfo