-
Notifications
You must be signed in to change notification settings - Fork 8
/
nginx-stream.conf
62 lines (47 loc) · 1.03 KB
/
nginx-stream.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
user nobody nogroup;
daemon on;
master_process on;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#error_log logs/error.log debug;
#error_log logs/error.log debug_event;
#error_log logs/error.log debug_stream;
#error_log /dev/stdout info;
#error_log /dev/stdout debug_event;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http{
#check_shm_size 1M;
#access_log /dev/stdout combined;
server {
listen 80;
location / {
root html;
index index.html;
}
location /status {
stub_status ;
}
location /l4status {
l4check_status json;
}
}
}
stream {
check_shm_size 1M;
server {
listen 522 ;
proxy_pass l4_pool_1;
}
upstream l4_pool_1 {
#least_conn;
hash $remote_addr;
check interval=5000 rise=2 fall=3 timeout=1000 type=tcp;
server 127.0.0.1:22 ;
server 127.0.0.2:22 ;
}
}