2024-11-10 08:55:10 +00:00
|
|
|
{ lib, ... }:
|
2024-08-11 10:08:41 +00:00
|
|
|
{
|
|
|
|
services.jellyfin = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
2024-11-10 08:55:10 +00:00
|
|
|
|
|
|
|
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
|
|
|
}
|