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

load TLS certificate from file #22

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
add default path to pem file
  • Loading branch information
jbsv committed Nov 17, 2024
commit a562fdab48ff39f7d899cabeb37884af5c7202fa
2 changes: 2 additions & 0 deletions cmd/grpc/client/web/mod.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ var staticPointConfig = &utils.Config{
Addresses: []string{
"128.179.33.63:50050", "128.179.33.75:50051",
},
CertFile: "/opt/apir/cert.pem",
}

var staticComplexConfig = &utils.Config{
Expand All @@ -70,6 +71,7 @@ var staticComplexConfig = &utils.Config{
Addresses: []string{
"128.179.33.63:50040", "128.179.33.75:50041",
},
CertFile: "/opt/apir/cert.pem",
}

var grpcOpts = []grpc.CallOption{
Expand Down