ansible/roles/reverse_proxy_stream/templates/nginx/stream-available/reverse_proxy

12 lines
194 B
Text

{{ ansible_managed | comment }}
server {
{% if item.type == "udp" %}
listen {{ item.from_port }} udp;
{% else %}
listen {{ item.from_port }};
{% endif %}
proxy_pass {{ item.to }};
}