27 lines
688 B
INI
27 lines
688 B
INI
|
frontend https
|
||
|
mode http
|
||
|
bind *:8000 ssl crt /usr/local/etc/haproxy/combined.pem alpn h2,http/1.1
|
||
|
default_backend backend_client
|
||
|
|
||
|
acl autoupdate path_beg -i /system
|
||
|
use_backend backend_autoupdate if autoupdate
|
||
|
|
||
|
acl server path_beg -i /apps /rest /server-version.txt
|
||
|
use_backend backend_server if server
|
||
|
|
||
|
acl media path_beg -i /media/
|
||
|
use_backend backend_media if media
|
||
|
|
||
|
stats enable
|
||
|
stats uri /stats
|
||
|
stats refresh 10s
|
||
|
stats auth admin:admin
|
||
|
|
||
|
backend backend_client
|
||
|
mode http
|
||
|
server client client:80 resolvers docker_resolver check
|
||
|
|
||
|
backend backend_media
|
||
|
mode http
|
||
|
server media media:8000 resolvers docker_resolver check
|