renamed to tls instead of keys
This commit is contained in:
committed by
Jonathon Anderson
parent
c4b8595f20
commit
bcf53f7efd
@@ -86,14 +86,14 @@ func RunServer() error {
|
||||
apiHandler = api.Handler(auth, conf.API.AllowedIPNets())
|
||||
}
|
||||
|
||||
httpHandler := configureHandler(!conf.Warewulf.EnableHttps(), apiHandler)
|
||||
httpHandler := configureHandler(!conf.Warewulf.EnableTLS(), apiHandler)
|
||||
|
||||
if conf.Warewulf.EnableHttps() {
|
||||
if conf.Warewulf.EnableTLS() {
|
||||
key := path.Join(conf.Paths.Sysconfdir, "warewulf", "keys", "warewulf.key")
|
||||
crt := path.Join(conf.Paths.Sysconfdir, "warewulf", "keys", "warewulf.crt")
|
||||
|
||||
if !util.IsFile(key) || !util.IsFile(crt) {
|
||||
wwlog.Error("HTTPS enabled but keys not found in %s", path.Join(conf.Paths.Sysconfdir, "warewulf", "keys"))
|
||||
wwlog.Error("TLS enabled but keys not found in %s", path.Join(conf.Paths.Sysconfdir, "warewulf", "keys"))
|
||||
} else {
|
||||
httpsHandler := configureHandler(true, apiHandler)
|
||||
go func() {
|
||||
|
||||
Reference in New Issue
Block a user