mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
reload certs from disk upon SIGHUP (#13792)
This commit is contained in:
1 parent
b280a37c4d
commit
24d904d194
3 files changed
+9
No files matched your search
@@ -34,6 +34,7 @@ import (
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
fcolor "github.com/fatih/color"
|
||||
@@ -718,6 +719,10 @@ func getTLSConfig() (x509Certs []*x509.Certificate, manager *certs.Manager, secu
|
||||
}
|
||||
}
|
||||
secureConn = true
|
||||
|
||||
// syscall.SIGHUP to reload the certs.
|
||||
manager.ReloadOnSignal(syscall.SIGHUP)
|
||||
|
||||
return x509Certs, manager, secureConn, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user