mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
?
This commit is contained in:
parent
97898d88b1
commit
e91d0725d1
1 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
||||||
const SoftUI = require("./dashboard-core/theme/dbd-soft-ui"),
|
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");
|
const { PermissionsBitField, ChannelType } = require("discord.js");
|
||||||
|
|
||||||
|
@ -36,6 +37,7 @@ module.exports.load = async client => {
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
const Dashboard = new DBD.Dashboard({
|
const Dashboard = new DBD.Dashboard({
|
||||||
port: client.config.dashboard.port,
|
port: client.config.dashboard.port,
|
||||||
client: {
|
client: {
|
||||||
|
@ -44,8 +46,8 @@ module.exports.load = async client => {
|
||||||
},
|
},
|
||||||
SSL: {
|
SSL: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
key: "../../jababot-cloudflare.key",
|
key: fs.readFileSync(`${__dirname}/../jababot-cloudflare.key`, "utf-8"),
|
||||||
cert: "../../jababot-cloudflare.crt",
|
cert: fs.readFileSync(`${__dirname}/../jababot-cloudflare.crt`, "utf-8"),
|
||||||
},
|
},
|
||||||
cookiesSecret: client.config.dashboard.secret,
|
cookiesSecret: client.config.dashboard.secret,
|
||||||
domain: client.config.dashboard.domain,
|
domain: client.config.dashboard.domain,
|
||||||
|
|
Loading…
Reference in a new issue