ansible/roles/nginx_reverseproxy/templates/nginx/modules-available/60-forward.conf.j2

15 lines
269 B
Text
Raw Normal View History

# {{ 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 %}