Skip to content

How to Implement a Proxy Server in Telegraph to Decrypt HTTPS Data and Handle Resource Failover #157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
JonHome opened this issue Feb 21, 2025 · 0 comments

Comments

@JonHome
Copy link

JonHome commented Feb 21, 2025

I am currently using the Telegraph library and have successfully set up an HTTPS server on iOS, providing HTTPS services with self-signed certificates and a CA. My goal now is to extend this to a proxy server, so that it can accelerate network requests and return local resources when appropriate.

Specifically, I want to decrypt HTTPS data for specific domains, similar to how localhost works with self-signed certificates.

Expected Features:
1. Proxy Server Functionality: Implement proxy server capabilities to receive and forward HTTPS requests for specific domains.
2. SSL/TLS Termination: Dynamically generate and serve self-signed certificates for the target domains on the proxy server. If dynamic generation is not feasible, I am considering packaging the corresponding certificates for specific domains and providing them when the request is received.
3. Failed Resource Response: How should I return a failure when there is no local resource? Can I use proxyConfig.allowFailover = true to automatically forward the request to the original server if the resource is not available locally?

Please provide guidance on how to implement these features, especially regarding the self-signed certificate configuration and handling failover when local resources are unavailable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant