From 8778e4a8cb807c74fb0bdecf3719257824b1ef16 Mon Sep 17 00:00:00 2001 From: iSnackyCracky Date: Sat, 27 May 2023 19:39:29 +0200 Subject: [PATCH] Add proxy improvements Enable gzip for faster client browsing, disable buffering to prevent issues with android-playback. --- emby.subdomain.conf.sample | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/emby.subdomain.conf.sample b/emby.subdomain.conf.sample index b843ad2..4b6b90a 100644 --- a/emby.subdomain.conf.sample +++ b/emby.subdomain.conf.sample @@ -1,4 +1,4 @@ -## Version 2023/02/05 +## Version 2023/05/27 # make sure that your emby container is named emby # make sure that your dns has a cname set for emby # if emby is running in bridge mode and the container is named "emby", the below config should work as is @@ -27,5 +27,27 @@ server { proxy_set_header Range $http_range; proxy_set_header If-Range $http_if_range; + + gzip on; + gzip_disable "msie6"; + gzip_comp_level 6; + gzip_min_length 1100; + gzip_buffers 16 8k; + gzip_proxied any; + gzip_types + text/plain + text/css + text/js + text/xml + text/javascript + application/javascript + application/x-javascript + application/json + application/xml + application/rss+xml + image/svg+xml; + + proxy_buffering off; + tcp_nodelay on; } }