add support for generic streams
This commit is contained in:
parent
4d82b39ef9
commit
41841311e6
4 changed files with 48 additions and 0 deletions
22
templates/stream.conf.j2
Normal file
22
templates/stream.conf.j2
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#jinja2:lstrip_blocks: True
|
||||
{% set stream = {}|combine(nginx_streams_defaults, item.value, recursive=True) %}
|
||||
{% set stream_name = item.key %}
|
||||
|
||||
server {
|
||||
|
||||
{% for i in stream.listen.custom %}
|
||||
listen {{ i }};
|
||||
{% endfor %}
|
||||
|
||||
proxy_pass {{ stream.proxy_pass }};
|
||||
proxy_protocol {{ stream.proxy_protocol }};
|
||||
|
||||
{% for c in stream.custom|default([]) %}
|
||||
{{ c }};
|
||||
{% endfor %}
|
||||
|
||||
{% for include in stream.includes %}
|
||||
include {{ include }};
|
||||
{% endfor %}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue