Browse Source

Updated server to use ssl

pull/4/head
jrtechs 6 years ago
parent
commit
6c4c0f03d5
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      server.js

+ 3
- 0
server.js View File

@ -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

Loading…
Cancel
Save