From 00dc6f1cf3cf912f4bcb7f104090b4b6948f0a19 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Fri, 11 Oct 2024 22:22:23 +0530 Subject: [PATCH] layne: open jellyfin to the world --- hosts/layne/services/apps/jellyfin.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/hosts/layne/services/apps/jellyfin.nix b/hosts/layne/services/apps/jellyfin.nix index 82c9d96..6eae80b 100644 --- a/hosts/layne/services/apps/jellyfin.nix +++ b/hosts/layne/services/apps/jellyfin.nix @@ -1,6 +1,7 @@ _: let inherit (import ../../../shared/caddy-helpers.nix) logFormat; + domainName = "watch.acomputer.lol"; in { services = { @@ -18,8 +19,30 @@ in reverse_proxy 127.0.0.1:8096 ''; }; + "${domainName}" = { + logFormat = logFormat domainName; + extraConfig = '' + reverse_proxy 127.0.0.1:8096 + ''; + }; }; }; + frp.settings.proxies = [ + { + name = "http.${domainName}"; + type = "http"; + customDomains = [ domainName ]; + localPort = 80; + transport.useCompression = true; + } + { + name = "https.${domainName}"; + type = "https"; + customDomains = [ domainName ]; + localPort = 443; + transport.useCompression = true; + } + ]; jellyfin = { enable = true; dataDir = "/mnt/data/Jellyfin";