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`,