1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-13 13:17:39 +03:00

B #5589: support SSL without nginx (#1539)

This commit is contained in:
Jorge Miguel Lobo Escalona 2021-10-25 16:40:17 +02:00 committed by GitHub
parent ec748683ac
commit dbc4e3208b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}
/**