mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-13 13:17:39 +03:00
parent
ec748683ac
commit
dbc4e3208b
@ -108,8 +108,8 @@ const validateServerIsSecure = () => {
|
||||
const folder = 'cert/'
|
||||
const dirCerts = env && env.NODE_ENV === defaultWebpackMode ? ['../', '../', '../', folder] : ['../', folder]
|
||||
const pathfile = resolve(__dirname, ...dirCerts)
|
||||
cert = `${pathfile}cert.pem`
|
||||
key = `${pathfile}key.pem`
|
||||
cert = `${pathfile}/cert.pem`
|
||||
key = `${pathfile}/key.pem`
|
||||
return existsSync && key && cert && existsSync(key) && existsSync(cert)
|
||||
}
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user