-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from erikmagkekse/feature/http-proxy
Adding HTTP Proxy support
- Loading branch information
Showing
9 changed files
with
271 additions
and
83 deletions.
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
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 @@ | ||
identity.json |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v0.2-alpha |
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,17 @@ | ||
services: | ||
ziti-edge-proxy: | ||
build: . | ||
ports: | ||
- "1080:1080" | ||
- "8080:8080" | ||
environment: | ||
PROXY_HOST: 0.0.0.0 | ||
SOCKS_PORT: 1080 | ||
HTTP_PORT: 8080 | ||
HTTP_ENABLED: true | ||
SOCKS_ENABLED: true | ||
PROXY_USERNAME: user | ||
PROXY_PASSWORD: 1234 | ||
ZITI_IDENTITIES: /app/identity.json | ||
volumes: | ||
- "../identity.json:/app/identity.json" |
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 |
---|---|---|
|
@@ -4,6 +4,11 @@ Use Netcat with the SSH ProxyProtocol feature. | |
ssh -o "ProxyCommand=ncat --proxy-auth user:1234 --proxy-type socks5 --proxy 127.0.0.1:1080 %h %p" [email protected] | ||
``` | ||
|
||
Simple curl to use the HTTP Proxy as example. | ||
``` | ||
curl -X http://127.0.0.1:8080 https://your.intercept.hostname.com | ||
``` | ||
|
||
|
||
# Docker Compose example | ||
``` | ||
|
@@ -14,7 +19,8 @@ services: | |
- "1080:1080" | ||
environment: | ||
PROXY_HOST: 0.0.0.0 | ||
PROXY_PORT: 1080 | ||
SOCKS_PORT: 1080 | ||
HTTP_PORT: 8080 | ||
PROXY_USERNAME: user | ||
PROXY_PASSWORD: 1234 | ||
ZITI_IDENTITIES: /app/identity.json | ||
|
@@ -31,7 +37,8 @@ services: | |
- "1080:1080" | ||
environment: | ||
PROXY_HOST: 0.0.0.0 | ||
PROXY_PORT: 1080 | ||
SOCKS_PORT: 1080 | ||
HTTP_PORT: 8080 | ||
PROXY_USERNAME: user | ||
PROXY_PASSWORD: 1234 | ||
ZITI_IDENTITY: "eyXXXXX" # Your identity.json just Base64 encoded, no JWT Token! | ||
|
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
Oops, something went wrong.