From cef679db99ab47a91af6471dc975caf546b9240f Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 28 Nov 2024 19:16:11 +0100 Subject: Add jelly web host Signed-off-by: Mel --- machines/corsac/default.nix | 1 + modules/jellyfin.nix | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/machines/corsac/default.nix b/machines/corsac/default.nix index ba913e2..f9d0a6e 100644 --- a/machines/corsac/default.nix +++ b/machines/corsac/default.nix @@ -9,6 +9,7 @@ ../../modules/dns.nix ../../modules/ddns.nix + ../../modules/www.nix ../../modules/nfs.nix ../../modules/jellyfin.nix ]; diff --git a/modules/jellyfin.nix b/modules/jellyfin.nix index b285161..ae6388b 100644 --- a/modules/jellyfin.nix +++ b/modules/jellyfin.nix @@ -7,6 +7,16 @@ package = auxiliaryPkgs.jellyfin; }; + services.nginx.virtualHosts = { + "jelly.rnrd.eu" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://127.0.0.1:8096"; + }; + }; + }; + environment.systemPackages = (with auxiliaryPkgs; [ jellyfin jellyfin-web -- cgit 1.4.1