2020-02-22 23:29:33 +00:00
|
|
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
|
|
const fs = require('fs');
|
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
const SSL_CERT_DIRECTORY = './ssl/cert';
|
2020-02-22 01:32:12 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2020-02-22 23:29:33 +00:00
|
|
|
port: 1812,
|
2020-02-22 01:32:12 +00:00
|
|
|
// radius secret
|
|
|
|
secret: 'testing123',
|
|
|
|
|
|
|
|
certificate: {
|
2020-02-22 23:29:33 +00:00
|
|
|
cert: fs.readFileSync(path.join(SSL_CERT_DIRECTORY, '/server.crt')),
|
2020-02-22 01:32:12 +00:00
|
|
|
key: [
|
|
|
|
{
|
2020-02-22 23:29:33 +00:00
|
|
|
pem: fs.readFileSync(path.join(SSL_CERT_DIRECTORY, '/server.key')),
|
2020-02-22 01:32:12 +00:00
|
|
|
passphrase: 'whatever2020'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2020-02-23 19:42:36 +00:00
|
|
|
// GoogleLDAPAuth (optimized for google auth)
|
|
|
|
authentication: 'GoogleLDAPAuth',
|
2020-02-22 01:32:12 +00:00
|
|
|
authenticationOptions: {
|
|
|
|
base: 'dc=hokify,dc=com',
|
2020-02-23 19:42:36 +00:00
|
|
|
tlsOptions: {
|
|
|
|
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
|
|
|
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/** LDAP AUTH
|
|
|
|
authentication: 'LDAPAuth',
|
|
|
|
authenticationOptions: {
|
|
|
|
url: 'ldaps://ldap.google.com',
|
|
|
|
base: 'dc=hokify,dc=com',
|
|
|
|
tlsOptions: {
|
2020-02-22 01:32:12 +00:00
|
|
|
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
|
|
|
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt'),
|
2020-02-23 19:42:36 +00:00
|
|
|
servername: 'ldap.google.com'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*/
|
2020-02-22 01:32:12 +00:00
|
|
|
|
2020-02-23 19:42:36 +00:00
|
|
|
/** IMAP AUTH
|
|
|
|
authentication: 'IMAPAuth',
|
|
|
|
authenticationOptions: {
|
|
|
|
host: 'imap.gmail.com',
|
|
|
|
port: 993,
|
|
|
|
useSecureTransport: true,
|
|
|
|
validHosts: ['hokify.com']
|
|
|
|
}
|
|
|
|
*/
|
2020-02-22 01:32:12 +00:00
|
|
|
|
2020-02-23 19:42:36 +00:00
|
|
|
/** SMTP AUTH
|
|
|
|
authentication: 'IMAPAuth',
|
|
|
|
authenticationOptions: {
|
|
|
|
host: 'smtp.gmail.com',
|
|
|
|
port: 465,
|
|
|
|
useSecureTransport: true,
|
|
|
|
validHosts: ['gmail.com']
|
2020-02-22 01:32:12 +00:00
|
|
|
}
|
2020-02-23 19:42:36 +00:00
|
|
|
*/
|
2020-02-22 01:32:12 +00:00
|
|
|
};
|