mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-16 11:58:47 +00:00
Compare commits
4 Commits
026a8ae9ff
...
c1bdb28e2b
Author | SHA1 | Date | |
---|---|---|---|
|
c1bdb28e2b | ||
|
a6bb1802a9 | ||
|
97782e58fa | ||
|
553a14743e |
@ -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 --flow-detail 4
|
||||||
|
ports:
|
||||||
|
- "8443:8443"
|
||||||
|
volumes:
|
||||||
|
- ./data:/home/mitmproxy/.mitmproxy
|
||||||
|
restart: unless-stopped
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
selenium
|
selenium
|
||||||
========
|
========
|
||||||
|
|
||||||
|
![](https://www.perfecto.io/sites/default/files/image/2021-10/components.png)
|
||||||
|
|
||||||
[Selenium][1] is an umbrella project for a range of tools and libraries that enable
|
[Selenium][1] is an umbrella project for a range of tools and libraries that enable
|
||||||
and support the automation of web browsers.
|
and support the automation of web browsers.
|
||||||
|
|
||||||
@ -9,6 +11,18 @@ Watch [this][2] video to get started.
|
|||||||
## Server
|
## Server
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
$ cat /etc/docker/daemon.json
|
||||||
|
{
|
||||||
|
"default-ulimits": {
|
||||||
|
"nofile": {
|
||||||
|
"Name": "nofile",
|
||||||
|
"Soft": 32768,
|
||||||
|
"Hard": 32768
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"live-restore": true
|
||||||
|
}
|
||||||
|
$ systemctl reload docker
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
$ curl http://127.0.0.1:4444/
|
$ curl http://127.0.0.1:4444/
|
||||||
```
|
```
|
||||||
|
@ -15,10 +15,6 @@ services:
|
|||||||
- "4444:4444"
|
- "4444:4444"
|
||||||
environment:
|
environment:
|
||||||
- SE_JAVA_OPTS=-Xms256m -Xmx2048m
|
- SE_JAVA_OPTS=-Xms256m -Xmx2048m
|
||||||
ulimits:
|
|
||||||
nofile:
|
|
||||||
soft: 32768
|
|
||||||
hard: 32768
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
chrome:
|
chrome:
|
||||||
@ -40,10 +36,6 @@ services:
|
|||||||
- VNC_NO_PASSWORD=1
|
- VNC_NO_PASSWORD=1
|
||||||
- VNC_VIEW_ONLY=1
|
- VNC_VIEW_ONLY=1
|
||||||
shm_size: 2gb
|
shm_size: 2gb
|
||||||
ulimits:
|
|
||||||
nofile:
|
|
||||||
soft: 32768
|
|
||||||
hard: 32768
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- hub
|
- hub
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@ -59,10 +51,6 @@ services:
|
|||||||
- SE_VIDEO_FOLDER=/videos
|
- SE_VIDEO_FOLDER=/videos
|
||||||
- FILE_NAME=video.mp4
|
- FILE_NAME=video.mp4
|
||||||
- VIDEO_READY_PORT=9000
|
- VIDEO_READY_PORT=9000
|
||||||
ulimits:
|
|
||||||
nofile:
|
|
||||||
soft: 32768
|
|
||||||
hard: 32768
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- chrome
|
- chrome
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -13,5 +13,21 @@ $ curl 127.0.0.1:9080/metrics
|
|||||||
|
|
||||||
Click [here][2] to get a free wireguard account.
|
Click [here][2] to get a free wireguard account.
|
||||||
|
|
||||||
|
You can run a self-hosted wireguard server quickly with [mitmproxy][3]
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ mitmdump --mode wireguard --flow-detail 4
|
||||||
|
... client connect
|
||||||
|
... DNS QUERY (A) ipinfo.io
|
||||||
|
... << 34.117.186.192
|
||||||
|
... client connect
|
||||||
|
... server connect 34.117.186.192:80
|
||||||
|
... GET http://34.117.186.192/
|
||||||
|
... << 200 OK 254b
|
||||||
|
... client disconnect
|
||||||
|
... server disconnect 34.117.186.192:80
|
||||||
|
```
|
||||||
|
|
||||||
[1]: https://github.com/pufferffish/wireproxy
|
[1]: https://github.com/pufferffish/wireproxy
|
||||||
[2]: https://opentunnel.net/wireguard/
|
[2]: https://opentunnel.net/wireguard/
|
||||||
|
[3]: https://docs.mitmproxy.org/stable/concepts-modes/#wireguard-transparent-proxy
|
||||||
|
Loading…
Reference in New Issue
Block a user