This general-purpose proxy forwards any request based on the resolver defined by the RESOLVER
environment variable and runs completely without further configuration.
This forward proxy can be used inbound scenarioss (ingress) where split horizon name servers are supported. In this case, the DNS entries in the local scope must be specified so that the request can be forwarded locally.
This forward proxy can be used in outbound scenarios (egress) where split horizon name servers are supported. In this case, the DNS entries in the global scope must be specified so that the request can be forwarded outbound.
This forward proxy can also be used in legacy scenarios for load balancing whithin traditional workloads.
- HTTP forward based on HTTP Host-Header.
- TCP forward based on TLS Server-Name-Indication (SNI). (TLS offloading is not supported)
Local testing can be performed simply by providing the test recipe:
docker stack deploy -c apps.yml apps
Now the endpoints below should be reachable:
Haproxy offeres outstanding performance based on zero-copy and tcp-splicing.