mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 05:12:56 +00:00
24 lines
424 B
Nix
24 lines
424 B
Nix
{ config, lib, ... }: {
|
|
|
|
options = {
|
|
streamServer = lib.mkOption {
|
|
type = lib.types.str;
|
|
description = "Hostname for Jellyfin library";
|
|
};
|
|
};
|
|
|
|
config = {
|
|
|
|
services.jellyfin.enable = true;
|
|
|
|
caddyRoutes = [{
|
|
match = [{ host = [ config.streamServer ]; }];
|
|
handle = [{
|
|
handler = "reverse_proxy";
|
|
upstreams = [{ dial = "localhost:8096"; }];
|
|
}];
|
|
}];
|
|
};
|
|
|
|
}
|