From 6c4c0f03d5a8a10943d045105e5b7ffe84346232 Mon Sep 17 00:00:00 2001 From: jrtechs Date: Sat, 5 May 2018 09:32:11 -0400 Subject: [PATCH] Updated server to use ssl --- server.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.js b/server.js index cc87937..7dfb8ef 100644 --- a/server.js +++ b/server.js @@ -24,6 +24,9 @@ var app = express(); app.use(session({ secret: utils.getFileLine('../session_secret'), cookie: { maxAge: 6000000 }})); +var privateKey = fs.readFileSync('/etc/letsencrypt/live/jrtechs.net/privkey.pem'); +var certificate = fs.readFileSync('/etc/letsencrypt/live/jrtechs.net/certificate.pem'); + /** * Parses the request url and calls correct JS files