From e91d0725d13c7be6f144154984f62b5c8002928b Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Tue, 27 Jun 2023 00:56:18 +0500 Subject: [PATCH] ? --- dashboard/dashboard.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dashboard/dashboard.js b/dashboard/dashboard.js index f4e8f7f8..3f6c8d01 100644 --- a/dashboard/dashboard.js +++ b/dashboard/dashboard.js @@ -1,5 +1,6 @@ const SoftUI = require("./dashboard-core/theme/dbd-soft-ui"), - DBD = require("./dashboard-core/index"); + DBD = require("./dashboard-core/index"), + fs = require("fs"); const { PermissionsBitField, ChannelType } = require("discord.js"); @@ -36,6 +37,7 @@ module.exports.load = async client => { }; }); + const Dashboard = new DBD.Dashboard({ port: client.config.dashboard.port, client: { @@ -44,8 +46,8 @@ module.exports.load = async client => { }, SSL: { enabled: true, - key: "../../jababot-cloudflare.key", - cert: "../../jababot-cloudflare.crt", + key: fs.readFileSync(`${__dirname}/../jababot-cloudflare.key`, "utf-8"), + cert: fs.readFileSync(`${__dirname}/../jababot-cloudflare.crt`, "utf-8"), }, cookiesSecret: client.config.dashboard.secret, domain: client.config.dashboard.domain,