Fix wsgi HTTPS example (#5385)
This commit is contained in:
parent
4771e42b44
commit
6110a2a1bb
|
@ -19,9 +19,10 @@ def hello_world() -> str:
|
||||||
addons = [
|
addons = [
|
||||||
# Host app at the magic domain "example.com" on port 80. Requests to this
|
# Host app at the magic domain "example.com" on port 80. Requests to this
|
||||||
# domain and port combination will now be routed to the WSGI app instance.
|
# domain and port combination will now be routed to the WSGI app instance.
|
||||||
asgiapp.WSGIApp(app, "example.com", 80)
|
asgiapp.WSGIApp(app, "example.com", 80),
|
||||||
# SSL works too, but the magic domain needs to be resolvable from the mitmproxy machine due to mitmproxy's design.
|
# TLS works too, but the magic domain needs to be resolvable from the mitmproxy machine due to mitmproxy's design.
|
||||||
# mitmproxy will connect to said domain and use serve its certificate (unless --no-upstream-cert is set)
|
# mitmproxy will connect to said domain and use its certificate but won't send any data.
|
||||||
# but won't send any data.
|
# By using `--set upstream_cert=false` and `--set connection_strategy_lazy` the local certificate is used instead.
|
||||||
# mitmproxy.ctx.master.apps.add(app, "example.com", 443)
|
# asgiapp.WSGIApp(app, "example.com", 443),
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue