video-library: also listen on tailscale interface
1 file changed, 16 insertions(+), 4 deletions(-)
changed files
M system/roles/video-library.nix → system/roles/video-library.nix
@@ -5,7 +5,13 @@ ... }: let inherit (config.networking) domain fqdn; - inherit (import ../../data) homenet; + inherit (import ../../data) homenet tailnet; + upstream = '' + reverse_proxy localhost:8096 { + health_uri /health + health_body Healthy + } + ''; in { services.jellyfin = {@@ -22,10 +28,16 @@ ca home } } ''} - reverse_proxy localhost:8096 { - health_uri /health - health_body Healthy + ${upstream} + ''; + }; + "jf.${tailnet}" = { + extraConfig = '' + bind tailscale/jf + tls { + get_certificate tailscale } + ${upstream} ''; }; };