silence mitmweb, nginx logs are hard enough to read

pull/52/head
Ricardo Pardini 2020-10-08 02:45:49 +02:00
parent 67edf7efda
commit fe388f560b
2 changed files with 2 additions and 3 deletions

View File

@ -25,7 +25,7 @@ RUN [[ "a$DO_DEBUG_BUILD" == "a1" ]] && { echo "Debug build ENABLED." \
ENV LANG=en_US.UTF-8
# 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
RUN mkdir -p /docker_mirror_cache /ca

View File

@ -104,8 +104,7 @@ if [[ "a${DEBUG}" == "atrue" ]]; then
mitmweb --no-web-open-browser --web-iface 0.0.0.0 --web-port 8081 \
--set keep_host_header=true --set ssl_insecure=true \
--mode reverse:https://127.0.0.1:444 --listen-host 0.0.0.0 \
--listen-port 443 --certs /certs/fullchain_with_key.pem \
-w /ca/outfile &
--listen-port 443 --certs /certs/fullchain_with_key.pem &> /dev/null &
echo "Access mitmweb via http://127.0.0.1:8081/ "
fi