mirror of
https://github.com/MatthewL246/mitmproxy-pretendo.git
synced 2026-09-07 10:55:14 -05:00
Reconfigure mitmproxy for Docker
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -3,4 +3,4 @@ configuration/*
|
||||
!configuration/config.yaml
|
||||
|
||||
# Python cache
|
||||
__pycache__
|
||||
__pycache__
|
||||
|
||||
1
.mitmproxy
Symbolic link
1
.mitmproxy
Symbolic link
@@ -0,0 +1 @@
|
||||
configuration/
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user