toomuchio / plex-nginx-reverseproxy

Configuration to serve Plex Media Center https://plex.tv using Nginx https://nginx.com
663 stars 94 forks source link

Bring toomuchio config into the 21st century #58

Open brettpetch opened 2 years ago

brettpetch commented 2 years ago

Applied a number of optimizations and best-practices for current webstandards, added ssl info.

toomuchio commented 2 years ago

There's some good stuff in here, I have an updated copy that's very similar I just haven't pushed as I forgot.

Your cfg is one that'll replace the base nginx.conf as well mind you, this was just intended to be dropped into conf.d/sites-enabled.

brettpetch commented 2 years ago

Interestingly enough I actually saw better IO/Buffers for clients when using the nginx proxy buffers rather than having them off

brettpetch commented 2 years ago

proxy_set_header X-Plex-Container-Size $http_x_plex_container_size; is required because of this log warning from Plex

Jul 11, 2022 17:41:19.341 [0x7f106b0e0b38] WARN - [Req#c3e9] Missing X-Plex-Container-Size header. This will fail with status code 400 in the future.