Skip to content

Commit

Permalink
Change HTTPS paths to .env
Browse files Browse the repository at this point in the history
  • Loading branch information
sonsoleslp committed May 3, 2022
1 parent 025fb23 commit 7a3a2ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7a3a2ad

Please sign in to comment.