Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 28 additions & 7 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,39 @@ module.exports = {
secret: 'testing123',

certificate: {
cert: fs.readFileSync(path.join(SSL_CERT_DIRECTORY, '/server.crt')),
ca: fs.readFileSync(path.join(SSL_CERT_DIRECTORY, '/ca.pem'), 'utf8'),
cert: fs.readFileSync(path.join(SSL_CERT_DIRECTORY, '/server.crt'), 'utf8'),
key: [
{
pem: fs.readFileSync(path.join(SSL_CERT_DIRECTORY, '/server.key')),
passphrase: 'whatever2020',
pem: fs.readFileSync(path.join(SSL_CERT_DIRECTORY, '/server.key'), 'utf8'),
passphrase: 'whatever',
},
],
// sessionTimeout: 3600,
// sesionIdContext: 'meiasdfkljasdft!',
// ticketKeys: Buffer.from('123456789012345678901234567890123456789012345678'),
},

// GoogleLDAPAuth (optimized for google auth)
// StaticAuth
authentication: 'StaticAuth',
authenticationOptions: {
validCredentials: [
{
username: 'testing',
password: 'password',
},
{
username: 't',
password: 'p',
},
{
username: 'user',
password: 'pwd',
},
],
},

/* GoogleLDAPAuth (optimized for google auth)
authentication: 'GoogleLDAPAuth',
authenticationOptions: {
base: 'dc=hokify,dc=com',
Expand All @@ -32,8 +52,9 @@ module.exports = {
certFile: 'ldap.gsuite.crt',
},
},
*/

/** LDAP AUTH
/** LDAP AUTH
authentication: 'LDAPAuth',
authenticationOptions: {
url: 'ldaps://ldap.google.com',
Expand All @@ -48,7 +69,7 @@ module.exports = {
}
*/

/** IMAP AUTH
/** IMAP AUTH
authentication: 'IMAPAuth',
authenticationOptions: {
host: 'imap.gmail.com',
Expand All @@ -58,7 +79,7 @@ module.exports = {
}
*/

/** SMTP AUTH
/** SMTP AUTH
authentication: 'IMAPAuth',
authenticationOptions: {
host: 'smtp.gmail.com',
Expand Down
Loading