This is an implementation of a web proxy compatible with HTTP/HTTPS and WebSockets with a dashboard that logs requests and allows to blacklist URL's. Caching is also implemented for HTTP.
$ ./cert.sh
Then you will have to add it to keychain for browsers to trust the cert. Add the .pem
cert into the certificates section of the keychain and right click, selecting Get Info.
Then under trust select Always Trust. Sin é.
$ go run proxy.go
$ open -a /Applications/Chromium.app --args --proxy-server="https://localhost:8888"