Reverse proxy to traefik

Francis Daly francis at daoine.org
Sat Jul 2 08:24:11 UTC 2022


On Fri, Jun 24, 2022 at 04:23:54PM -0300, Daniel Armando Rodriguez wrote:

Hi there,

> I need to forward HTTP/HTTPS stream to a traefik within docker container.
> Additionally, this traefik is also SSL termination. And just at this point
> where I am stuck, as the SSL management against Let's Encrypt needs both
> HTTP and HTTPS traffic.

I'm not quite sure what you are trying to do, in nginx terms.

nginx has the idea of "http", where an incoming http or https request
to nginx is handled by nginx making a new http or https request to the
upstream service; and nginx has the idea of "stream", where any traffic
on an incoming tcp connection is forwarded to an upstream service. That
"stream" traffic can optionally be SSL-decrypted or encrypted by nginx
before forwarding.

> Made this representation to illustrate the situation.
> https://i.postimg.cc/Zq1Ndyws/scheme.png

If you can describe what you want, in terms of "something external
will make a http request of nginx that should be handled in this way;
it will make a https request of nginx that should be handled in that way;
and it will send a generic tcp stream to this port on nginx that should
be handled in this other way", then the nginx config to handle that,
might be clearer.

Cheers,

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list