Changed docker/plex to use direct connections

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
This commit is contained in:
TuDatTr
2023-04-17 16:23:16 +02:00
parent 00fd124e2d
commit ced3ff35ad
6 changed files with 7 additions and 4 deletions

View File

@@ -181,6 +181,7 @@ services:
image: lscr.io/linuxserver/plex:latest
container_name: plex
restart: always
ip: {{ plex_ip }}
networks:
- net
ports:

View File

@@ -12,7 +12,7 @@ server {
location / {
include /config/nginx/resolver.conf;
proxy_pass http://plex.aya01.borg.land;
proxy_pass http://{{ plex_ip | replace('.','-') }}.{{ vault_plex_server_id }}.plex.direct:{{ plex_port }}/
proxy_set_header X-Plex-Client-Identifier $http_x_plex_client_identifier;
proxy_set_header X-Plex-Device $http_x_plex_device;