Skip to content

Commit 33a7743

Browse files
committed
config: update minimum TLS version for server
The config is used both when setting up the HTTP API and for the notifier's Deliverer. Signed-off-by: crozzy <[email protected]>
1 parent 1e78f45 commit 33a7743

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config/tls.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ func (t *TLS) Config() (*tls.Config, error) {
5858
return nil, fmt.Errorf("failed to read x509 cert and key pair: %w", err)
5959
}
6060
cfg.Certificates = append(cfg.Certificates, cert)
61+
cfg.MinVersion = tls.VersionTLS12
6162

6263
return &cfg, nil
6364
}

0 commit comments

Comments
 (0)