route ollama through haproxy
This commit is contained in:
parent
01b4dc2f09
commit
2f818f13d9
|
@ -21,7 +21,6 @@ haproxy:
|
|||
- drone.badjware.dev
|
||||
- ci.badjware.dev
|
||||
- grafana.badjware.dev
|
||||
# - jellyfin.badjware.dev
|
||||
- chat.badjware.dev
|
||||
backend:
|
||||
- server: 192.168.20.20:8443
|
||||
|
@ -81,29 +80,11 @@ haproxy:
|
|||
backend:
|
||||
- server: 192.168.31.20:8123
|
||||
ssl: false
|
||||
- frontend:
|
||||
- zigbee2mqtt.badjware.dev
|
||||
backend:
|
||||
- server: 192.168.31.20:8080
|
||||
allowlist:
|
||||
- 192.168.30.20 # only allow pallet
|
||||
ssl: false
|
||||
- frontend:
|
||||
- s3.badjware.dev
|
||||
backend:
|
||||
- server: 192.168.20.30:9000
|
||||
ssl: false
|
||||
# - frontend:
|
||||
# - kubernetes-dashboard.badjnet.home
|
||||
# - traefik.badjnet.home
|
||||
# - longhorn.badjnet.home
|
||||
# - grafana.badjnet.home
|
||||
# - prometheus.badjnet.home
|
||||
# backend:
|
||||
# - 192.168.20.20
|
||||
# - 192.168.20.21
|
||||
# - 192.168.20.22
|
||||
# - 192.168.20.23
|
||||
tcp:
|
||||
- frontend: "30022" # gitea-ssh
|
||||
backend:
|
||||
|
@ -167,24 +148,7 @@ haproxy:
|
|||
extra_param: backup
|
||||
- frontend: "11434" # ollama
|
||||
backend:
|
||||
- server: 192.168.20.20:11434
|
||||
- server: 192.168.20.21:11434
|
||||
- server: 192.168.20.22:11434
|
||||
- server: 192.168.20.23:11434
|
||||
- server: 192.168.20.24:11434
|
||||
- server: 192.168.20.25:11434
|
||||
- server: 192.168.20.20:31002
|
||||
extra_param: backup
|
||||
- server: 192.168.20.21:31002
|
||||
extra_param: backup
|
||||
- server: 192.168.20.22:31002
|
||||
extra_param: backup
|
||||
- server: 192.168.20.23:31002
|
||||
extra_param: backup
|
||||
- server: 192.168.20.24:31002
|
||||
extra_param: backup
|
||||
- server: 192.168.20.25:31002
|
||||
extra_param: backup
|
||||
- server: 192.168.30.20:11434
|
||||
|
||||
letsencrypt:
|
||||
domains:
|
||||
|
|
|
@ -93,6 +93,10 @@ backend default_backend
|
|||
backend https_{{ http_route.frontend[0]|replace('.','_') }}
|
||||
mode http
|
||||
balance roundrobin
|
||||
|
||||
# for websockets
|
||||
timeout tunnel 1h
|
||||
|
||||
{% for dst in http_route.backend %}
|
||||
server {{ dst.server }} {{ dst.server }}{% if ':' not in dst.server %}:443{% endif %} check {% if http_route.ssl|default(true) %}ssl verify none alpn h2,http/1.1{% endif %} {{ dst.extra_param|default('') }}
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue