diff --git a/compose.yml b/compose.yml index c51d7c3..4d0e928 100644 --- a/compose.yml +++ b/compose.yml @@ -2,6 +2,7 @@ name: pretendo-network version: "3.8" services: mitmproxy-pretendo: + image: ghcr.io/matthewl246/mitmproxy-pretendo:main build: ./repos/mitmproxy-pretendo ports: # Proxy server @@ -9,6 +10,9 @@ services: # Mitmweb interface - 127.0.0.1:8081:8081 volumes: + - type: bind + source: ./config/mitmproxy.yaml + target: /home/mitmproxy/mitmproxy-config.yaml - type: volume source: mitmproxy-pretendo-data target: /home/mitmproxy/.mitmproxy diff --git a/config/mitmproxy.yaml b/config/mitmproxy.yaml new file mode 100644 index 0000000..723a1f9 --- /dev/null +++ b/config/mitmproxy.yaml @@ -0,0 +1,26 @@ +# See https://docs.mitmproxy.org/stable/concepts-options/ for documentation + +listen_port: 8080 +web_port: 8081 + +# Make sure that the right configuration files and certs are loaded +client_certs: ./client-certificates/WiiU-common.pem +confdir: ./.mitmproxy + +# Enable the Pretendo redirection script +scripts: ["../pretendo_addon.py"] +pretendo_redirect: true +pretendo_host: nginx +pretendo_host_port: 80 +pretendo_http: true + +# Allow self-signed certificates +ssl_insecure: true + +# Allow the console to use older TLS versions +tls_version_client_min: UNBOUNDED +tls_version_server_min: UNBOUNDED + +# A few convenience features +anticache: true +showhost: true diff --git a/patches/mitmproxy-pretendo/configure-local-pretendo-host.patch b/patches/mitmproxy-pretendo/configure-local-pretendo-host.patch deleted file mode 100644 index 09fcb15..0000000 --- a/patches/mitmproxy-pretendo/configure-local-pretendo-host.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git i/mitmproxy-config.yaml w/mitmproxy-config.yaml -index b9a4877..2e157a4 100644 ---- i/mitmproxy-config.yaml -+++ w/mitmproxy-config.yaml -@@ -10,6 +10,9 @@ confdir: ./.mitmproxy - # Enable the Pretendo redirection script - scripts: ["../pretendo_addon.py"] - pretendo_redirect: true -+pretendo_http: true -+pretendo_host: nginx -+pretendo_host_port: 80 - - # Allow self-signed certificates - ssl_insecure: true