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

#976 bind https cert to httpServer #977

Merged
merged 1 commit into from
Jul 27, 2020
Merged

#976 bind https cert to httpServer #977

merged 1 commit into from
Jul 27, 2020

Conversation

andy-shi88
Copy link
Contributor

Description

Fix services https.

Breakdown

  • bind https cert to httpServer
  • handle cors for grpcweb

Reference Issue

Close #976

@andy-shi88 andy-shi88 self-assigned this Jul 27, 2020
wrappedServer := grpcweb.WrapServer(grpcServer)
wrappedServer := grpcweb.WrapServer(
grpcServer,
grpcweb.WithCorsForRegisteredEndpointsOnly(true),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this grpcwebproxy allow to switch to disable ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no disable yet
but this merge the proxy port to normal rpc port
before we have :7000 for rpc and :8002 for proxy
now we only need :7000 to handle both 👍

@iltoga iltoga merged commit 822b6d3 into zoobc:experimental Jul 27, 2020
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

Successfully merging this pull request may close these issues.

4 participants