mirror of
https://github.com/MatthewL246/mitmproxy-pretendo.git
synced 2026-03-21 17:24:10 -05:00
This allows pretendo-docker clients to connect to URLs that do not exist as upstream servers. Previously, this would cause an error because mitmproxy would attempt to connect to the nonexistent upstream server before processing the redirection script that changes the request's destination to the local server.
28 lines
771 B
YAML
28 lines
771 B
YAML
# 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
|
|
|
|
# Set up redirection to a local server
|
|
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
|
|
|
|
# Allow connections to URLs that do not exist upstream (see https://github.com/MatthewL246/pretendo-docker/issues/243)
|
|
connection_strategy: lazy
|