-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ee0157
commit c013a20
Showing
5 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# rathole configuration for proxy protocol enabled client | ||
# | ||
# The client configuration is essentially unaffected, since the proxy | ||
# protocol header would be transarently passed to the downstream server. | ||
|
||
[client] | ||
remote_addr = "localhost:2333" | ||
default_token = "123" | ||
|
||
[client.services.foo1] | ||
local_addr = "127.0.0.1:80" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# rathole configuration for proxy protocol enabled client | ||
# | ||
# The service configuration has an additional `enable_proxy_protocol` boolean field. | ||
# Not setting this field defaults its value to `false` at runtime. | ||
|
||
[server] | ||
bind_addr = "0.0.0.0:2333" | ||
default_token = "123" | ||
|
||
[server.services.foo1] | ||
bind_addr = "0.0.0.0:5202" | ||
enable_proxy_protocol = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters