From 7a3a2ad456a93d3f725619e14f77dd884f9c8242 Mon Sep 17 00:00:00 2001 From: sonsoleslp Date: Tue, 3 May 2022 15:53:22 +0200 Subject: [PATCH] Change HTTPS paths to .env --- bin/www | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/www b/bin/www index e536891f..04dd3fca 100644 --- a/bin/www +++ b/bin/www @@ -21,9 +21,9 @@ if (httpApp.get("env") === "production" && !process.env.HEROKU) { var fs = require('fs'); var https = require('https'); httpsApp.set('port', port); - var privateKey = fs.readFileSync('/etc/ssl/private/escapp.dit.upm.es.llave.pem', 'utf8'); - var certificate = fs.readFileSync('/etc/ssl/certs/escapp.dit.upm.es.certificado.pem', 'utf8'); - var ca = fs.readFileSync('/etc/ssl/certs/cadDigiCertCA.pem', 'utf8'); + var privateKey = fs.readFileSync(process.env.HTTPS_PRIVATE_KEY, 'utf8'); + var certificate = fs.readFileSync(process.env.HTTPS_CERTIFICATE, 'utf8'); + var ca = fs.readFileSync(process.env.HTTPS_CA_CERT, 'utf8'); var credentials = {key: privateKey, cert: certificate, ca}; httpServer = https.createServer(credentials, httpsApp);