diff --git a/index.js b/index.js index 24506b5..e120fdd 100644 --- a/index.js +++ b/index.js @@ -89,7 +89,8 @@ async function updateProxy(firstRun) { backends.push({ name, - port: port.PublishedPort + port: port.PublishedPort, + targetPort: port.TargetPort }); } } diff --git a/rproxy.handlebars b/rproxy.handlebars index f3c78c8..6d87d8c 100644 --- a/rproxy.handlebars +++ b/rproxy.handlebars @@ -48,7 +48,7 @@ backend {{name}} #+++++++++++++++++++++++++++++++ TCP backends {{#each tcp}} -listen {{name}}:{{port}} +listen {{name}}:{{port}}:{{targetPort}} bind :{{port}} mode tcp {{#each ../workers}}