Changed docker/plex to use direct connections

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

View File

@ -8,6 +8,7 @@ remote_domain: tudattr.dev
rclone_config: "/root/.config/rclone/" rclone_config: "/root/.config/rclone/"
puid: 1000 puid: 1000
pgid: 1000 pgid: 1000
pk_path: "/mnt/veracrypt1/genesis"
# #
@ -227,6 +228,7 @@ swag_remote_site_confs: "{{swag_config}}/nginx/site-confs/"
# #
plex_host: "plex" plex_host: "plex"
plex_ip: "172.16.69.12"
plex_port: "32400" plex_port: "32400"
plex_config: "{{docker_data_dir}}/plex/config" plex_config: "{{docker_data_dir}}/plex/config"
plex_tv: "/media/series" plex_tv: "/media/series"

View File

@ -1,5 +1,5 @@
ansible_user: "{{ user }}" ansible_user: "{{ user }}"
ansible_host: 192.168.20.12 ansible_host: 192.168.20.12
ansible_port: 22 ansible_port: 22
ansible_ssh_private_key_file: /media/veracrypt1/genesis ansible_ssh_private_key_file: '{{ pk_path }}'
ansible_become_pass: '{{ vault_aya01_tudattr_password }}' ansible_become_pass: '{{ vault_aya01_tudattr_password }}'

View File

@ -1,5 +1,5 @@
ansible_user: "{{ user }}" ansible_user: "{{ user }}"
ansible_host: 202.61.207.139 ansible_host: 202.61.207.139
ansible_port: 22 ansible_port: 22
ansible_ssh_private_key_file: /media/veracrypt1/genesis ansible_ssh_private_key_file: '{{ pk_path }}'
ansible_become_pass: '{{ vault_mii_tudattr_password }}' ansible_become_pass: '{{ vault_mii_tudattr_password }}'

View File

@ -1,5 +1,5 @@
ansible_user: "{{ user }}" ansible_user: "{{ user }}"
ansible_host: 192.168.20.11 ansible_host: 192.168.20.11
ansible_port: 22 ansible_port: 22
ansible_ssh_private_key_file: /media/veracrypt1/genesis ansible_ssh_private_key_file: '{{ pk_path }}'
ansible_become_pass: '{{ vault_pi_tudattr_password }}' ansible_become_pass: '{{ vault_pi_tudattr_password }}'

View File

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

View File

@ -12,7 +12,7 @@ server {
location / { location / {
include /config/nginx/resolver.conf; 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-Client-Identifier $http_x_plex_client_identifier;
proxy_set_header X-Plex-Device $http_x_plex_device; proxy_set_header X-Plex-Device $http_x_plex_device;