flake/hosts/pek0/services/jellyfin.nix

17 lines
425 B
Nix
Raw Normal View History

{ lib, ... }:
2024-08-11 10:08:41 +00:00
{
services.jellyfin = {
enable = true;
openFirewall = true;
};
services.caddy.settings.apps.http.servers.srv0.routes = lib.singleton {
match = lib.singleton { host = [ "jellyfin.ny4.dev" ]; };
handle = lib.singleton {
handler = "reverse_proxy";
headers.request.set."X-Forwarded-Proto" = [ "https" ];
upstreams = lib.singleton { dial = "127.0.0.1:8096"; };
};
};
2024-08-11 10:08:41 +00:00
}