certificates

This commit is contained in:
Jonny_Bro (Nikita) 2023-06-27 00:41:09 +05:00
parent da2a27bc85
commit 0a899d1627
2 changed files with 10 additions and 1 deletions

4
.gitignore vendored
View file

@ -27,3 +27,7 @@ node_modules
# Sessions Store # Sessions Store
sessions sessions
# SSL
/*.crt
/*.key

View file

@ -42,6 +42,11 @@ module.exports.load = async client => {
id: client.config.user, id: client.config.user,
secret: client.config.dashboard.secret, secret: client.config.dashboard.secret,
}, },
SSL: {
enabled: true,
key: "../jababot-cloudflare.key",
cert: "../jababot-cloudflare.crt",
},
cookiesSecret: client.config.dashboard.secret, cookiesSecret: client.config.dashboard.secret,
domain: client.config.dashboard.domain, domain: client.config.dashboard.domain,
redirectUri: `${client.config.dashboard.domain}${client.config.dashboard.port !== 80 ? `:${client.config.dashboard.port}` : ""}/discord/callback`, redirectUri: `${client.config.dashboard.domain}${client.config.dashboard.port !== 80 ? `:${client.config.dashboard.port}` : ""}/discord/callback`,