Fully document #193 stream module
This commit is contained in:
parent
a1220edb36
commit
5dfeeb9d08
@ -110,6 +110,7 @@ nginx:
|
|||||||
access_log: [] #suppress default access_log option from being added
|
access_log: [] #suppress default access_log option from being added
|
||||||
|
|
||||||
### module nngx_stream_core_module
|
### module nngx_stream_core_module
|
||||||
|
### https://docs.nginx.com/nginx/admin-guide/load-balancer/tcp-udp-load-balancer/#example
|
||||||
stream:
|
stream:
|
||||||
upstream lb-1000:
|
upstream lb-1000:
|
||||||
- server:
|
- server:
|
||||||
@ -119,6 +120,26 @@ nginx:
|
|||||||
listen: 1000
|
listen: 1000
|
||||||
proxy_pass: lb-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:
|
servers:
|
||||||
disabled_postfix: .disabled # a postfix appended to files when doing non-symlink disabling
|
disabled_postfix: .disabled # a postfix appended to files when doing non-symlink disabling
|
||||||
|
Loading…
Reference in New Issue
Block a user