add more options to stream proxying

This commit is contained in:
nd 2021-11-13 20:30:42 +01:00
parent e26ef3022e
commit 08c567f7af
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
2 changed files with 4 additions and 0 deletions

View file

@ -52,6 +52,8 @@ nginx_streams_defaults:
includes: []
proxy_pass: ~
proxy_protocol: "off"
proxy_connect_timeout: "2s"
proxy_next_upstream_tries: 2
nginx_forcessl_vhost:
"https-redirect":

View file

@ -10,6 +10,8 @@ server {
proxy_pass {{ stream.proxy_pass }};
proxy_protocol {{ stream.proxy_protocol }};
proxy_connect_timeout {{ stream.proxy_connect_timeout }};
proxy_next_upstream_tries {{ stream.proxy_next_upstream_tries }};
{% for c in stream.custom|default([]) %}
{{ c }};