Skip to content

Commit

Permalink
attempting to fix key fromat fro menv var
Browse files Browse the repository at this point in the history
  • Loading branch information
olaven committed Jun 30, 2020
1 parent 629c877 commit f27b471
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server.js
Expand Up @@ -13,9 +13,9 @@ const handle = app.getRequestHandler()
console.log("env here:", process.env);

const httpsOptions = dev ? {} : {
key: process.env.SSL_PRIVKEY, // readFileSync(process.env.SSL_PRIVKEY),
cert: process.env.SSL_FULLCHAIN, // readFileSync(process.env.SSL_FULLCHAIN),
ca: process.env.SLL_CHAI, // readFileSync(process.env.SLL_CHAIN)
key: process.env.SSL_PRIVKEY.replace(/\\n/gm, '\n'), // readFileSync(process.env.SSL_PRIVKEY),
cert: process.env.SSL_FULLCHAIN.replace(/\\n/gm, '\n'), // readFileSync(process.env.SSL_FULLCHAIN),
ca: process.env.SLL_CHAIN.replace(/\\n/gm, '\n'), // readFileSync(process.env.SLL_CHAIN)
};

app.prepare().then(() => {
Expand Down

0 comments on commit f27b471

Please sign in to comment.