From 0a899d1627fe7cbe3e0caa9c5db7baaf39575d73 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Tue, 27 Jun 2023 00:41:09 +0500 Subject: [PATCH] certificates --- .gitignore | 6 +++++- dashboard/dashboard.js | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d290494d..5d086fff 100644 --- a/.gitignore +++ b/.gitignore @@ -26,4 +26,8 @@ node_modules /json.sqlite # Sessions Store -sessions \ No newline at end of file +sessions + +# SSL +/*.crt +/*.key \ No newline at end of file diff --git a/dashboard/dashboard.js b/dashboard/dashboard.js index 089acf76..c96cde9c 100644 --- a/dashboard/dashboard.js +++ b/dashboard/dashboard.js @@ -42,6 +42,11 @@ module.exports.load = async client => { id: client.config.user, secret: client.config.dashboard.secret, }, + SSL: { + enabled: true, + key: "../jababot-cloudflare.key", + cert: "../jababot-cloudflare.crt", + }, cookiesSecret: client.config.dashboard.secret, domain: client.config.dashboard.domain, redirectUri: `${client.config.dashboard.domain}${client.config.dashboard.port !== 80 ? `:${client.config.dashboard.port}` : ""}/discord/callback`,