Skip to content

Commit

Permalink
config: update minimum TLS version for server
Browse files Browse the repository at this point in the history
The config is used both when setting up the HTTP API and
for the notifier's Deliverer.

Signed-off-by: crozzy <[email protected]>
  • Loading branch information
crozzy committed Jan 5, 2024
1 parent 1e78f45 commit 33a7743
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ func (t *TLS) Config() (*tls.Config, error) {
return nil, fmt.Errorf("failed to read x509 cert and key pair: %w", err)
}
cfg.Certificates = append(cfg.Certificates, cert)
cfg.MinVersion = tls.VersionTLS12

return &cfg, nil
}
Expand Down

0 comments on commit 33a7743

Please sign in to comment.