@@ -92,10 +92,11 @@ if [[ "a${DEBUG}" == "atrue" ]]; then
92
92
93
93
echo " Starting in DEBUG MODE (mitmproxy)." >&2
94
94
echo " Run mitmproxy with reverse pointing to the same certs..."
95
- mitmweb --no-web-open-browser --web-iface 0.0.0.0 --web-port 8081 \
95
+ mitmweb --no-web-open-browser --set web_host=0.0.0.0 --set confdir=~ /.mitmproxy-incoming \
96
+ --set termlog_verbosity=error --set stream_large_bodies=128k --web-port 8081 \
96
97
--set keep_host_header=true --set ssl_insecure=true \
97
98
--mode reverse:https://127.0.0.1:444 --listen-host 0.0.0.0 \
98
- --listen-port 443 --certs /certs/fullchain_with_key.pem & > /dev/null &
99
+ --listen-port 443 --certs /certs/fullchain_with_key.pem &
99
100
echo " Access mitmweb via http://127.0.0.1:8081/ "
100
101
fi
101
102
@@ -110,10 +111,11 @@ if [[ "a${DEBUG_HUB}" == "atrue" ]]; then
110
111
111
112
echo " Debugging outgoing DockerHub connections via mitmproxy on 8082." >&2
112
113
# this one has keep_host_header=false so we don't need to modify nginx config
113
- mitmweb --no-web-open-browser --web-iface 0.0.0.0 --web-port 8082 \
114
+ mitmweb --no-web-open-browser --set web_host=0.0.0.0 --set confdir=~ /.mitmproxy-outgoing-hub \
115
+ --set termlog_verbosity=error --set stream_large_bodies=128k --web-port 8082 \
114
116
--set keep_host_header=false --set ssl_insecure=true \
115
117
--mode reverse:https://registry-1.docker.io --listen-host 0.0.0.0 \
116
- --listen-port 445 --certs /certs/fullchain_with_key.pem & > /dev/null &
118
+ --listen-port 445 --certs /certs/fullchain_with_key.pem &
117
119
118
120
echo " Warning, DockerHub outgoing debugging disables upstream SSL verification for all upstreams." >&2
119
121
VERIFY_SSL=false
0 commit comments