Skip to content

Commit aea30e2

Browse files
authored
Merge pull request chobits#27 from skyever/enable_rewrite_phase
support proxy_connect_address and proxy_connect_bind directives
2 parents fe44e36 + 13099fd commit aea30e2

File tree

3 files changed

+404
-10
lines changed

3 files changed

+404
-10
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,35 @@ Sets a timeout for transmitting a request to the proxied server.
135135
The timeout is set only between two successive write operations, not for the transmission of the whole request.
136136
If the proxied server does not receive anything within this time, the connection is closed.
137137

138+
proxy_connect_address
139+
---------------------------
140+
141+
Syntax: **proxy_connect_address `address [transparent] | off`**
142+
Default: `none`
143+
Context: `server`
144+
145+
Specifiy an IP address of the proxied server. The address can contain variables. The special value off is equal to none,
146+
which uses the IP address resolved from host name of CONNECT request line.
147+
148+
proxy_connect_bind_
149+
---------------------------
150+
151+
Syntax: **proxy_connect_bind `address | off`**
152+
Default: `none`
153+
Context: `server`
154+
155+
Makes outgoing connections to a proxied server originate from the specified local IP address with an optional port.
156+
Parameter value can contain variables. The special value off is equal to none, which allows the system to auto-assign
157+
the local IP address and port.
158+
159+
The transparent parameter allows outgoing connections to a proxied server originate from a non-local IP address, for
160+
example, from a real IP address of a client:
161+
162+
```
163+
proxy_connect_bind $remote_addr transparent;
164+
165+
```
166+
138167
Nginx Compatibility
139168
===================
140169

0 commit comments

Comments
 (0)