Update proxy config to improve behavior and allow compatibility with Safari on MacOS and iOS

This commit is contained in:
Mark Felder 2018-12-12 17:31:47 +00:00
parent 2592b3c81a
commit 48c4f88ffd
1 changed files with 5 additions and 1 deletions

View File

@ -72,9 +72,13 @@ server {
location ~ ^/(media|proxy) {
proxy_cache pleroma_media_cache;
slice 1m;
proxy_cache_key $host$uri$is_args$args$slice_range;
proxy_set_header Range $slice_range;
proxy_http_version 1.1;
proxy_cache_valid 200 206 301 304 1h;
proxy_cache_lock on;
proxy_ignore_client_abort on;
proxy_buffering off;
chunked_transfer_encoding on;
proxy_pass http://localhost:4000;
}