Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4745

Choose backend based on api call responce

$
0
0

I currently have a single docker host with traefik running behind an haproxy instance that routes HTTPS SNI and HTTP hostnames to various destinations, mostly docker.

I’m currently building out a 3 node docker host cluster and want to be able to use the letsencrypt functionality of traefik, which a cursory search indicates this is difficult.

The angle I want to attempt is polling the traefik API on each host for active applications and selecting the backend if it matches the SNI or http host of the incoming connection. Is there a way in httproxy to perform logic on the response of an HTTP check response?

If you have an easy example that’s great, otherwise please point me in the right direction. is this an LUA script? Out of my wheelhouse but can learn

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4745

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>