From 29aa07cf4eef7058da5a9b34146ead4237ca559a Mon Sep 17 00:00:00 2001 From: Matthew Lopez <73856503+MatthewL246@users.noreply.github.com> Date: Wed, 20 Jul 2022 21:09:52 -0400 Subject: [PATCH] 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. --- configuration/config.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configuration/config.yaml b/configuration/config.yaml index a367320..fce53fd 100644 --- a/configuration/config.yaml +++ b/configuration/config.yaml @@ -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