silence mitmweb, nginx logs are hard enough to read
parent
67edf7efda
commit
fe388f560b
|
@ -25,7 +25,7 @@ RUN [[ "a$DO_DEBUG_BUILD" == "a1" ]] && { echo "Debug build ENABLED." \
|
||||||
ENV LANG=en_US.UTF-8
|
ENV LANG=en_US.UTF-8
|
||||||
|
|
||||||
# Check the installed mitmproxy version, if built.
|
# Check the installed mitmproxy version, if built.
|
||||||
RUN [[ "a$DO_DEBUG_BUILD" == "a1" ]] && { mitmproxy --version ; } || { echo "Debug build disabled."; }
|
RUN [[ "a$DO_DEBUG_BUILD" == "a1" ]] && { mitmproxy --version && mitmweb --version ; } || { echo "Debug build disabled."; }
|
||||||
|
|
||||||
# Create the cache directory and CA directory
|
# Create the cache directory and CA directory
|
||||||
RUN mkdir -p /docker_mirror_cache /ca
|
RUN mkdir -p /docker_mirror_cache /ca
|
||||||
|
|
|
@ -104,8 +104,7 @@ if [[ "a${DEBUG}" == "atrue" ]]; then
|
||||||
mitmweb --no-web-open-browser --web-iface 0.0.0.0 --web-port 8081 \
|
mitmweb --no-web-open-browser --web-iface 0.0.0.0 --web-port 8081 \
|
||||||
--set keep_host_header=true --set ssl_insecure=true \
|
--set keep_host_header=true --set ssl_insecure=true \
|
||||||
--mode reverse:https://127.0.0.1:444 --listen-host 0.0.0.0 \
|
--mode reverse:https://127.0.0.1:444 --listen-host 0.0.0.0 \
|
||||||
--listen-port 443 --certs /certs/fullchain_with_key.pem \
|
--listen-port 443 --certs /certs/fullchain_with_key.pem &> /dev/null &
|
||||||
-w /ca/outfile &
|
|
||||||
echo "Access mitmweb via http://127.0.0.1:8081/ "
|
echo "Access mitmweb via http://127.0.0.1:8081/ "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue