15 lines
269 B
Text
15 lines
269 B
Text
|
# {{ 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 %}
|