Mitproxy as HTTPS Proxy

I’m using mitmproxy to intercept traffic, HTTP Traffic is being intercepted but HTTPS traffic is not being intercepted for some reason (?)

Using the default config with the command

Web server listening at
Proxy server listening at http://*:8080

How can I set a config for a HTTPS proxy?

If you have installed mitmproxy’s certificate it should work out of the box. If it’s not, write something more about your use case (proxy set in global OS setting? or in-app settings).