Demonstrates proxying gRPC traffic with HAProxy.
Run:
docker compose build
docker compose up
You should see the client connect through HAProxy to the gRPC server and get a stream of "codenames".
The haproxy.crt
and haproxy.key
are generated with a SAN of "haproxy", which is required since CN allows only domain names.
openssl req -newkey rsa:2048 -nodes -x509 -days 3650 -keyout haproxy.key -out haproxy.crt -subj /CN=haproxy -addext "subjectAltName=DNS:haproxy"