jellyfin instead of plex
This commit is contained in:
parent
1dc870e664
commit
431db062bc
3 changed files with 73 additions and 15 deletions
34
nix/home/programs/jellyfin/default.nix
Normal file
34
nix/home/programs/jellyfin/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [
|
||||
# jellyfin frontend
|
||||
8096
|
||||
8920
|
||||
#nginx
|
||||
80
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
# jellyfin discovery
|
||||
1900
|
||||
7359
|
||||
];
|
||||
};
|
||||
|
||||
services.jellyfin.enable = true;
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
|
||||
virtualHosts."mediaserver" = {
|
||||
# http2 can more performant for streaming: https://blog.cloudflare.com/introducing-http2/
|
||||
http2 = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:8096";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue