Add proxy improvements

Enable gzip for faster client browsing, disable buffering to prevent issues with android-playback.
This commit is contained in:
iSnackyCracky 2023-05-27 19:39:29 +02:00 committed by GitHub
commit 8778e4a8cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 emby container is named emby
# make sure that your dns has a cname set for 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 # 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 Range $http_range;
proxy_set_header If-Range $http_if_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;
} }
} }