Skip to content

Commit

Permalink
Reconfigure mitmproxy for Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewL246 committed Dec 15, 2023
1 parent a44495f commit bfb5d01
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ configuration/*
!configuration/config.yaml

# Python cache
__pycache__
__pycache__
1 change: 1 addition & 0 deletions .mitmproxy
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
21 changes: 4 additions & 17 deletions configuration/config.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit bfb5d01

Please sign in to comment.