Skip to content

Commit

Permalink
fix https configuration errors (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
yohamta authored Mar 19, 2024
1 parent a7e7c11 commit 5754d1b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ go-lint:
@golangci-lint run ./...

cert-dir:
@mkdir ./cert
@mkdir -p ./cert

gencerts-ca:
@openssl req -x509 -newkey rsa:4096 \
Expand Down
1 change: 0 additions & 1 deletion service/frontend/fx.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ func New(params Params) *server.Server {
}

if params.Config.IsAuthToken {

serverParams.AuthToken = &server.AuthToken{
Token: params.Config.AuthToken,
}
Expand Down
3 changes: 3 additions & 0 deletions service/frontend/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ func (svr *Server) Serve(ctx context.Context) (err error) {
if svr.tls != nil {
svr.server.TLSCertificate = flags.Filename(svr.tls.CertFile)
svr.server.TLSCertificateKey = flags.Filename(svr.tls.KeyFile)
svr.server.EnabledListeners = []string{"https"}
svr.server.TLSHost = svr.host
svr.server.TLSPort = svr.port
}

// Run the server
Expand Down

0 comments on commit 5754d1b

Please sign in to comment.