Fully document #193 stream module

This commit is contained in:
N 2019-01-25 22:50:00 +00:00
parent a1220edb36
commit 5dfeeb9d08
No known key found for this signature in database
GPG Key ID: 93AFB6C0144D1A90

View File

@ -110,6 +110,7 @@ nginx:
access_log: [] #suppress default access_log option from being added
### module nngx_stream_core_module
### https://docs.nginx.com/nginx/admin-guide/load-balancer/tcp-udp-load-balancer/#example
stream:
upstream lb-1000:
- server:
@ -119,6 +120,26 @@ nginx:
listen: 1000
proxy_pass: lb-1000
upstream stream_backend:
least_conn: ''
'server': 'backend1.example.com:12345 weight=5' #one way
'server backend2.example.com:12345 max_fails=2 fail_timeout=30s': ''
'server backend3.example.com:12345 max_conns=3': '' #another way
upstream dns_servers:
least_conn:
'server 192.168.136.130:53': ''
'server 192.168.136.131:53': ''
'server 192.168.136.132:53': ''
'server ':
listen: '53 udp'
proxy_pass: dns_servers
'server ':
listen: 12346
proxy_pass: backend4.example.com:12346
servers:
disabled_postfix: .disabled # a postfix appended to files when doing non-symlink disabling