adi90x / rancher-active-proxy

All in one active reverse proxy for Rancher ! For Kubernetes : https://github.com/adi90x/kube-active-proxy
MIT License
156 stars 55 forks source link

listen to multiple ports and forward to multiple ports #24

Open hanselke opened 7 years ago

hanselke commented 7 years ago

I need a single domain to listen to two ports, 443 and 3000, that will be forwarded to the 443 and 3000 port of the container. is this possible?

XtremXpert commented 7 years ago

I think the main issue is the upstream entry created. The entry is including the port number with the IP and not there is no port in the related proxy_pass of the location.

If the program is modify for putting the port in the proxy_pass instead of the upstream, you will be able to put a per host config in vhost dir and configure it for those 2 ports using server directives, one listening on each port and containing a proxy_pass to the good upstream including the port related)