mitmproxy-pretendo/config-local.yaml
silver_volt4 c074b6bd66
Some checks failed
Build and Publish Docker Image / build-publish (3ds) (push) Has been cancelled
Build and Publish Docker Image / build-publish (local) (push) Has been cancelled
Build and Publish Docker Image / build-publish (wiiu) (push) Has been cancelled
Update config-local.yaml to use connection_strategy: lazy (#9)
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.
2025-04-04 16:44:14 -04:00

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