jellyfin cache nginx
This commit is contained in:
parent
c62caf46d3
commit
fa7b646b8e
|
@ -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 {
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue