Add airsonic

This commit is contained in:
Amarpreet Minhas 2022-03-26 18:06:51 -04:00
parent d55cf675ea
commit 6abe601862
2 changed files with 10 additions and 2 deletions

View file

@ -21,8 +21,6 @@
state: present
mode: 0644
- name: update apt cache
apt:
- name: install docker-ce
apt:
state: present

View file

@ -32,6 +32,11 @@ defaults
errorfile 503 /etc/haproxy/errors/503.http
errorfile 504 /etc/haproxy/errors/504.http
frontend fe_tcp
mode tcp
bind :8000
default_backend be_airsonic
frontend fe_default
mode http
bind :443 ssl crt /etc/haproxy/certs/ alpn h2,http/1.1
@ -51,6 +56,11 @@ backend be_{{ domain.name }}
server-template {{ domain.name }} 1 _{{ domain.name }}._tcp.service.masked.name resolvers consul resolve-opts allow-dup-ip resolve-prefer ipv4 check
{% endfor %}
backend be_airsonic
balance leastconn
server airsonic 192.168.0.12:8000
resolvers consul
nameserver consul 127.0.0.1:8600
accepted_payload_size 8192