This repository was archived by the owner on Jan 24, 2020. It is now read-only.
File tree 3 files changed +50
-8
lines changed
3 files changed +50
-8
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ ENV NAMESERVERS="208.67.222.222 8.8.8.8 208.67.220.220 8.8.4.4" \
12
12
LISTEN=:100 \
13
13
PRE_RESOLVE=0 \
14
14
TALK=talk:100 \
15
+ TIMEOUT_CLIENT=5s \
16
+ TIMEOUT_CLIENT_FIN=5s \
17
+ TIMEOUT_CONNECT=5s \
18
+ TIMEOUT_SERVER=5s \
19
+ TIMEOUT_SERVER_FIN=5s \
20
+ TIMEOUT_TUNNEL=5s \
15
21
UDP=0 \
16
22
VERBOSE=0
17
23
Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ and it must be written in the format used by the [`bind`][] directive.
42
42
By default (` :100 ` ), it listens in every connection at port 100 (port 100?
43
43
that's stupid!... Yes, read the title :point_up ::expressionless : ).
44
44
45
- ### ` NAMESERVERS `
45
+ #### ` $ NAMESERVERS`
46
46
47
47
Default: ` 208.67.222.222 8.8.8.8 208.67.220.220 8.8.4.4 ` to use OpenDNS and Google DNS resolution servers by default.
48
48
49
49
Only used when [ pre-resolving] ( #pre-resolve ) is enabled.
50
50
51
- ### ` PRE_RESOLVE `
51
+ #### ` $ PRE_RESOLVE`
52
52
53
53
Default: ` 0 `
54
54
@@ -65,6 +65,42 @@ required by [HAProxy][]'s [`server`][] directive.
65
65
66
66
By default (` talk:100 ` ), it talks to a host named ` talk ` in port 100 too.
67
67
68
+ #### ` $TIMEOUT_CLIENT `
69
+
70
+ Default: ` 5s `
71
+
72
+ This variable sets the maximum inactivity time on the client side.
73
+
74
+ #### ` $TIMEOUT_CLIENT_FIN `
75
+
76
+ Default: ` 5s `
77
+
78
+ This variable sets the inactivity timeout on the client side for half-closed connections.
79
+
80
+ #### ` $TIMEOUT_CONNECT `
81
+
82
+ Default: ` 5s `
83
+
84
+ This variable sets the maximum time to wait for a connection attempt to a server to succeed.
85
+
86
+ #### ` $TIMEOUT_SERVER `
87
+
88
+ Default: ` 5s `
89
+
90
+ This variable sets the maximum inactivity time on the server side.
91
+
92
+ #### ` $TIMEOUT_SERVER_FIN `
93
+
94
+ Default: ` 5s `
95
+
96
+ This variable sets the inactivity timeout on the server side for half-closed connection.
97
+
98
+ #### ` $TIMEOUT_TUNNEL `
99
+
100
+ Default: ` 5s `
101
+
102
+ This variable sets the maximum inactivity time on the client and server side for tunnels.
103
+
68
104
### Multi-proxy mode
69
105
70
106
This image supports proxying multiple ports at once, but keep in mind
Original file line number Diff line number Diff line change 29
29
defaults
30
30
log global
31
31
mode tcp
32
- timeout client 5s
33
- timeout client-fin 5s
34
- timeout connect 5s
35
- timeout server 5s
36
- timeout server-fin 5s
37
- timeout tunnel 5s
32
+ timeout client env(TIMEOUT_CLIENT)
33
+ timeout client-fin env(TIMEOUT_CLIENT_FIN)
34
+ timeout connect env(TIMEOUT_CONNECT)
35
+ timeout server env(TIMEOUT_SERVER)
36
+ timeout server-fin env(TIMEOUT_SERVER_FIN)
37
+ timeout tunnel env(TIMEOUT_TUNNEL)
38
38
"""
39
39
40
40
if len (LISTENS ) != len (TALKS ):
You can’t perform that action at this time.
0 commit comments