diff --git a/.gitignore b/.gitignore index d12df34..471d35b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ configuration/* !configuration/config.yaml # Python cache -__pycache__ \ No newline at end of file +__pycache__ diff --git a/.mitmproxy b/.mitmproxy new file mode 120000 index 0000000..7d0512e --- /dev/null +++ b/.mitmproxy @@ -0,0 +1 @@ +configuration/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 0aaf163..f0614b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/configuration/config.yaml b/configuration/config.yaml index 626e474..4cda7c6 100644 --- a/configuration/config.yaml +++ b/configuration/config.yaml @@ -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