Reverse proxy tcp/udp with nginx
Nginx has the ability to reverse proxy tcp and udp with the stream
directive, similar to the http directive:
This can be useful to load balance tcp streams like a database connection.
If you built nginx with --with-stream=dynamic
(you can check with nginx -V
) you will need to manually load a shared object: