jellyfin cache nginx

This commit is contained in:
Sakooooo 2025-01-05 10:17:20 +04:00
parent c62caf46d3
commit fa7b646b8e
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -13,7 +13,17 @@ in {
group = "media";
};
nginx.virtualHosts = {
nginx = {
proxyCachePath."jellyfin" = {
enable = true;
levels = "1:2";
inactive = "1w";
maxSize = "5g";
useTempPath = false;
keysZoneName = "jellyfin_cache";
keysZoneSize = "10m";
};
virtualHosts = {
"jellyfin.sako.box" = {
forceSSL = true;
sslCertificate = "/srv/secrets/certs/sako.box.pem";
@ -31,6 +41,7 @@ in {
extraConfig = ''
# Disable buffering when the nginx proxy gets very resource heavy upon streaming
proxy_buffering off;
proxy_cache jellyfin_cache;
'';
};
"/socket" = {
@ -41,6 +52,6 @@ in {
};
};
};
};
};
}