Reconfigure mitmproxy for Docker

This commit is contained in:
Matthew Lopez
2023-12-15 16:25:56 -05:00
parent a44495f59c
commit bfb5d01353
4 changed files with 9 additions and 18 deletions

2
.gitignore vendored
View File

@@ -3,4 +3,4 @@ configuration/*
!configuration/config.yaml
# Python cache
__pycache__
__pycache__

1
.mitmproxy Symbolic link
View File

@@ -0,0 +1 @@
configuration/

View File

@@ -42,3 +42,6 @@ FROM mitmproxy/mitmproxy:latest AS mitmproxy
ARG openssl_dir cryptography_dir
COPY --from=openssl-build ${openssl_dir} ${openssl_dir}
COPY --from=openssl-build ${cryptography_dir}/venv/lib /usr/local/lib
WORKDIR /home/mitmproxy
COPY . .
EXPOSE 8080 8081

View File

@@ -1,25 +1,12 @@
# See https://docs.mitmproxy.org/stable/concepts-options/ for documentation
# An easy-to-remember port that should not conflict with anything
listen_port: 8888
web_port: 8089
mode: reverse:http://127.0.0.1:81
keep_host_header: true
block_global: false
listen_port: 8080
web_port: 8081
# Disable HTTP/2 support, as it seems buggy and is not necessary
http2: false
# These just make sure that the right configuration files and certs are loaded.
# This makes sure that the right configuration files and certs are loaded.
client_certs: ./client-certificates/WiiU-common.pem
confdir: ./configuration
# This enables the Pretendo redirection script.
scripts: ["./pretendo_addon.py"]
scripts: ["../pretendo_addon.py"]
pretendo_redirect: true
# A couple convenience features
console_focus_follow: true
showhost: true
console_palette: dark
console_layout: vertical