constants.js
839 Bytes
const fs = require('fs');
const path = require('path');
const domain = '2020105640.oss-2021.tk';
module.exports = {
LINE: {
URL: {
NOTIFY: 'https://notify-api.line.me/api/notify',
},
CHANNEL_TOKEN: 'RzDICmPPV/TJBYTazkASkptggoT58lCt+IS9ayXvYXZP2INsAkeiQfVNV2/5OULHzxXEzXQQRIwsyZ1uXVXROuM4GYLfPNOGqCFbt2pzgbWbp29X4b0ohfZAsA80PsP8CEfiSAiue9lOrxNm3AXS5QdB04t89/1O/w1cDnyilFU=',
},
CONFIG: {
PORT: 23023,
HTTPS_OPTIONS: {
ca: fs.readFileSync(`/etc/letsencrypt/live/${domain}/fullchain.pem`),
key: fs.readFileSync(path.resolve(process.cwd(), `/etc/letsencrypt/live/${domain}/privkey.pem`), 'utf8').toString(),
cert: fs.readFileSync(path.resolve(process.cwd(), `/etc/letsencrypt/live/${domain}/cert.pem`), 'utf8').toString(),
}
}
};