some small changes

This commit is contained in:
2017-11-21 00:06:47 +07:00
parent 4aae137b08
commit e52a9727c3
4 changed files with 10 additions and 6 deletions

3
app.js
View File

@@ -1,5 +1,6 @@
#!/usr/bin/env node
require('dotenv').config();
var express = require('express');
var bodyParser = require('body-parser');
var https = require('https');
@@ -8,7 +9,7 @@ var fs = require('fs');
var helloBot = require('./hello.js');
var app = express();
var sslPath = '/etc/letsencrypt/live/sao.twilightparadox.com/';
var sslPath = process.env.SSL_CERT_PATH;
var options = {
key: fs.readFileSync(sslPath + 'privkey.pem'),