mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-20 21:33:45 -07:00
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:
parent
d8253f3c1e
commit
4f72dd58bd
229 changed files with 467 additions and 699 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue