15 lines
285 B
Django/Jinja
15 lines
285 B
Django/Jinja
{{ ansible_managed | comment }}
|
|
|
|
{% for site in reverseproxy.redirect_tcp %}
|
|
# Forward port {{ site.port }} to {{ site.name }}
|
|
stream {
|
|
server {
|
|
listen {{ site.port }};
|
|
listen [::]:{{ site.port }};
|
|
|
|
proxy_pass {{ site.destination }};
|
|
}
|
|
}
|
|
|
|
{% endfor %}
|
|
|