This repository has been archived on 2024-11-21. You can view files and clone it, but cannot push or open issues or pull requests.
server_config/sys/srv/jellyfin.nix

31 lines
606 B
Nix
Raw Permalink Normal View History

2024-08-23 21:01:33 +02:00
{
2024-08-24 09:52:56 +02:00
lib,
pkgs,
...
}:
with lib; {
2024-08-23 21:01:33 +02:00
services = {
nginx = {
virtualHosts."stream.posixlycorrect.com" = {
enableACME = true;
forceSSL = true;
extraConfig = ''
proxy_headers_hash_max_size 512;
proxy_headers_hash_bucket_size 128;
2024-08-24 09:52:56 +02:00
'';
2024-08-23 21:01:33 +02:00
locations."/" = {
proxyPass = "http://localhost:8096";
};
};
};
jellyfin = {
enable = true;
user = "jellyfin";
group = "jellyfin";
dataDir = "/mnt/export2008/jellyfin/dataDir";
cacheDir = "/mnt/export2008/jellyfin/cacheDir";
};
};
}