Set http2 at http level

Ref: https://github.com/linuxserver/docker-baseimage-alpine-nginx/pull/167

Signed-off-by: Eric Nemchik <eric@nemchik.com>
This commit is contained in:
Eric Nemchik 2024-05-29 08:17:43 -05:00
commit 4f72dd58bd
No known key found for this signature in database
229 changed files with 467 additions and 699 deletions

View file

@ -1,4 +1,4 @@
## Version 2023/05/31
## Version 2024/05/29
# make sure that your plex container is named plex
# make sure that your dns has a cname set for plex
# if plex is running in bridge mode and the container is named "plex", the below config should work as is
@ -7,16 +7,13 @@
# in plex server settings, under network, fill in "Custom server access URLs" with your domain (ie. "https://plex.yourdomain.url:443")
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen *:443 ssl;
server_name plex.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
proxy_redirect off;
proxy_buffering off;
# enable for ldap auth (requires ldap-location.conf in the location block)
#include /config/nginx/ldap-server.conf;
@ -48,6 +45,9 @@ server {
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_buffering off;
proxy_redirect off;
proxy_set_header X-Plex-Client-Identifier $http_x_plex_client_identifier;
proxy_set_header X-Plex-Device $http_x_plex_device;
proxy_set_header X-Plex-Device-Name $http_x_plex_device_name;