cloudflare / pingora

A library for building fast, reliable and evolvable network services.
Apache License 2.0
20.2k stars 1.1k forks source link

HTTPS Support pingora-proxy #290

Closed Abdullah13521 closed 2 days ago

Abdullah13521 commented 1 week ago

I'm trying to run the pingora-proxy examples and it looks like they don't support HTTPS requests? I'm wondering if it's possible to support HTTPS requests and how to do so.

For context, I'm running this example https://github.com/cloudflare/pingora/blob/main/pingora-proxy/examples/gateway.rs

When I run this command: curl --proxy http://localhost:6191 http://one.one.one.one

It works fine, but when I run it with HTTPS: curl --proxy http://localhost:6191 https://one.one.one.one I get the following error: curl: (56) CONNECT tunnel failed, response 400

I want to use pingora-proxy to support upstream connections using TLS, so having HTTPS support is necessary.

veehaitch commented 1 week ago

Related: #200

eaufavor commented 1 week ago

To be clear as the example showed, pingora does support https as a reserve proxy.

As the instruction stated: curl http://localhost:6191 (without --proxy) will connect you to https://one.one.one.one.

That being said, there might be a problem handling CONNECT proxy protocol.

github-actions[bot] commented 4 days ago

This question has been stale for a week. It will be closed in an additional day if not updated.

github-actions[bot] commented 2 days ago

This issue has been closed because it has been stalled with no activity.