Skip to content
Snippets Groups Projects
Commit 706de015 authored by ale's avatar ale
Browse files

Merge branch 'public-tcp-endpoints-different-port' into 'master'

Support forwarding to different internal port in public_tcp_endpoints

See merge request ai3/float!248
parents 67a1e7c1 ad018af2
Branches
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
allow_port tcp {{ port }}
{% endfor %}
{% else %}
allow_port tcp {{ ep.port }}
allow_port tcp {{ ep.public_port | default(ep.port) }}
{% endif %}
{% endfor %}
{% endfor %}
......@@ -47,11 +47,11 @@ backend be_{{ service_name }}_{{ ep.name }}_{{ port }}
{% endfor %} # ep.ports
{% else %}
frontend fe_{{ service_name }}_{{ ep.name }}_{{ ep.port }}
bind :::{{ ep.port }}
{% set public_port = ep.public_port | default(ep.port) %}
frontend fe_{{ service_name }}_{{ ep.name }}_{{ public_port }}
bind :::{{ public_port }}
default_backend be_{{ service_name }}_{{ ep.name }}_{{ ep.port }}
backend be_{{ service_name }}_{{ ep.name }}_{{ ep.port }}
log global
balance leastconn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment