enable media cache better
Signed-off-by: Xe <me@christine.website>
This commit is contained in:
parent
dec40a59f7
commit
79b5706c7b
|
@ -86,10 +86,7 @@ in {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_cache akkoma_media_cache;
|
proxy_cache akkoma_media_cache;
|
||||||
|
|
||||||
# Cache objects in slices of 1 MiB
|
proxy_cache_key $host$uri$is_args$args;
|
||||||
slice 1m;
|
|
||||||
proxy_cache_key $host$uri$is_args$args$slice_range;
|
|
||||||
proxy_set_header Range $slice_range;
|
|
||||||
|
|
||||||
# Decouple client and upstream requests
|
# Decouple client and upstream requests
|
||||||
proxy_buffering on;
|
proxy_buffering on;
|
||||||
|
|
Loading…
Reference in New Issue