mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-02 03:37:40 +02:00
update mitmproxy
This commit is contained in:
parent
553a14743e
commit
97782e58fa
@ -5,7 +5,20 @@ mitmproxy
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
|
|
||||||
$ curl --proxy 127.0.0.1:8080 --cacert data/mitmproxy-ca-cert.pem https://www.google.com
|
$ curl --proxy 127.0.0.1:8080 --cacert data/mitmproxy-ca-cert.pem https://www.google.com
|
||||||
|
|
||||||
|
$ curl https://localhost:8443/headers
|
||||||
|
{
|
||||||
|
"headers": {
|
||||||
|
"Accept": "*/*",
|
||||||
|
"Host": "httpbin.org",
|
||||||
|
"User-Agent": "curl/8.6.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> To install certificate globally, please read [this][2].
|
||||||
|
|
||||||
[1]: https://mitmproxy.org/
|
[1]: https://mitmproxy.org/
|
||||||
|
[2]: https://docs.mitmproxy.org/stable/concepts-certificates/
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
mitmproxy:
|
mitmproxy:
|
||||||
image: mitmproxy/mitmproxy
|
image: mitmproxy/mitmproxy
|
||||||
command: mitmweb --web-host 0.0.0.0
|
command: mitmweb --web-host 0.0.0.0
|
||||||
@ -9,3 +11,12 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./data:/home/mitmproxy/.mitmproxy
|
- ./data:/home/mitmproxy/.mitmproxy
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
mitmdump:
|
||||||
|
image: mitmproxy/mitmproxy
|
||||||
|
command: mitmdump --mode reverse:https://httpbin.org:443@8443
|
||||||
|
ports:
|
||||||
|
- "8443:8443"
|
||||||
|
volumes:
|
||||||
|
- ./data:/home/mitmproxy/.mitmproxy
|
||||||
|
restart: unless-stopped
|
||||||
|
Loading…
Reference in New Issue
Block a user