Add file providers for jellyfin and HA
This commit is contained in:
parent
969674772c
commit
e1ea938d59
5 changed files with 50 additions and 0 deletions
|
@ -2,3 +2,6 @@ expose_ssh: true
|
||||||
traefik_private_ip: "{{ ansible_default_ipv4.address }}"
|
traefik_private_ip: "{{ ansible_default_ipv4.address }}"
|
||||||
|
|
||||||
traefik_proxy_protocol_trusted_ips: 10.23.0.0/16
|
traefik_proxy_protocol_trusted_ips: 10.23.0.0/16
|
||||||
|
|
||||||
|
traefik_provider_jellyfin: true
|
||||||
|
traefik_provider_homeassistant: true
|
||||||
|
|
|
@ -2,3 +2,6 @@ traefik_private_ip: "{{ wireguard.clients[ansible_fqdn].ip }}"
|
||||||
traefik_influx_db_dir: ./influxdb
|
traefik_influx_db_dir: ./influxdb
|
||||||
|
|
||||||
traefik_proxy_protocol_trusted_ips: "{{ wireguard.cidr }}"
|
traefik_proxy_protocol_trusted_ips: "{{ wireguard.cidr }}"
|
||||||
|
|
||||||
|
traefik_provider_jellyfin: false
|
||||||
|
traefik_provider_homeassistant: false
|
||||||
|
|
12
ansible/roles/traefik/files/file-provider-homeassistant.yml
Normal file
12
ansible/roles/traefik/files/file-provider-homeassistant.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
http:
|
||||||
|
routers:
|
||||||
|
router-homeassistant:
|
||||||
|
rule: Host(`homeassistant.jakehoward.tech`)
|
||||||
|
service: service-homeassistant
|
||||||
|
tls:
|
||||||
|
certResolver: le
|
||||||
|
services:
|
||||||
|
service-homeassistant:
|
||||||
|
loadBalancer:
|
||||||
|
servers:
|
||||||
|
- url: http://192.168.2.41:8123
|
12
ansible/roles/traefik/files/file-provider-jellyfin.yml
Normal file
12
ansible/roles/traefik/files/file-provider-jellyfin.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
http:
|
||||||
|
routers:
|
||||||
|
router-jellyfin:
|
||||||
|
rule: Host(`media.jakehoward.tech`)
|
||||||
|
service: service-jellyfin
|
||||||
|
tls:
|
||||||
|
certResolver: le
|
||||||
|
services:
|
||||||
|
service-jellyfin:
|
||||||
|
loadBalancer:
|
||||||
|
servers:
|
||||||
|
- url: http://10.23.1.29:8096
|
|
@ -47,3 +47,23 @@
|
||||||
owner: "{{ docker_user.name }}"
|
owner: "{{ docker_user.name }}"
|
||||||
notify: restart traefik
|
notify: restart traefik
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
- name: Install homeassistant provider
|
||||||
|
template:
|
||||||
|
src: files/file-provider-homeassistant.yml
|
||||||
|
dest: /opt/traefik/traefik/conf/homeassistant.yml
|
||||||
|
mode: "{{ docker_compose_file_mask }}"
|
||||||
|
owner: "{{ docker_user.name }}"
|
||||||
|
notify: restart traefik
|
||||||
|
when: traefik_router_homeassistant
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: Install jellyfin provider
|
||||||
|
template:
|
||||||
|
src: files/file-provider-jellyfin.yml
|
||||||
|
dest: /opt/traefik/traefik/conf/jellyfin.yml
|
||||||
|
mode: "{{ docker_compose_file_mask }}"
|
||||||
|
owner: "{{ docker_user.name }}"
|
||||||
|
notify: restart traefik
|
||||||
|
when: traefik_router_jellyfin
|
||||||
|
become: true
|
||||||
|
|
Loading…
Reference in a new issue