mirror of
https://github.com/MatthewL246/mitmproxy-pretendo.git
synced 2026-09-07 10:55:14 -05:00
Set up reverse proxy config
This reverse proxy listens on port 8888 and forwards all traffic to a local server running on port 81. TCP ports 80 and 443 should be forwarded to port 8888. This local server should be running a reverse proxy like nginx that will proxy requests based on the host header.
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
# See https://docs.mitmproxy.org/stable/concepts-options/ for documentation
|
||||
|
||||
# An easy-to-remember port that should not conflict with anything
|
||||
listen_port: 2240
|
||||
web_port: 8088
|
||||
listen_port: 8888
|
||||
web_port: 8089
|
||||
mode: reverse:http://127.0.0.1:81
|
||||
keep_host_header: true
|
||||
block_global: false
|
||||
|
||||
# These settings make sure that connections are not blocked because they use an
|
||||
# old version of TLS.
|
||||
@@ -16,6 +19,7 @@ confdir: ./configuration
|
||||
|
||||
# This enables the Pretendo redirection script.
|
||||
scripts: ["./pretendo_addon.py"]
|
||||
pretendo_redirect: true
|
||||
|
||||
# This simply attempts makes sure that no requests are cached.
|
||||
anticache: true
|
||||
|
||||
Reference in New Issue
Block a user