Skip to content
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

question: selecctor - How to access HTTPS service not bound at Port 443 #190

Closed
2 tasks done
Andrew-M-C opened this issue Nov 9, 2024 · 3 comments
Closed
2 tasks done
Labels
question Further information is requested

Comments

@Andrew-M-C
Copy link
Contributor

Andrew-M-C commented Nov 9, 2024

Preliminary Research

  • I have read the project's documentation.
  • I have searched existing issues for similar questions to see if my question has already been addressed.

Question

As I know, trpc provides building selector named ip, which also enables dns resolving. Also, it will enable SSL when target port is 443 and protocol is http.

However, for certain reason, my HTTP server with SSL is not listening port 443. How can I access this https server NOT listerning Port 443 via trpc?

Additional Information

@Andrew-M-C Andrew-M-C added the question Further information is requested label Nov 9, 2024
@Andrew-M-C
Copy link
Contributor Author

I found that I can use 'client.WithReqHead(&thttp.ClientReqHeader{Schema: "https"})' to enable https. However, is there any way to enable https in config-way?

@WineChord
Copy link
Contributor

@Andrew-M-C
Copy link
Contributor Author

So, just making - ca_cert: "none" will do, right?

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

No branches or pull requests

2 participants