constants.js 829 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',
        },
        TOKEN: 'Cu3yosmWtXOPBhjccMCdJj2YH1g5KF8rhBv0zHZyqj3uYOrHSPYkixI+6SP7bfZOdC8J4xwhOriJahHtLxsQxUMnTaanncGyAyTFyD9+18gvzEcS39plUIadREyL38HoY/9o6O3a3guSOMxyiT+cJQdB04t89/1O/w1cDnyilFU=',
    },
    CONFIG: {
        PORT: 443,
        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(),
        }
    }
};