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