/**
* @namespace Config
* @memberOf Myintranet
*/
/**
* The main application config object.
* @typedef {Object} config
* @property {Object} mail mail configuration
* @property {string} mail.smtp the smtp server
* @property {number} mail.port the smtp server
* @property {string} mail.ssl the smtp true if the smtp server uses ssl true => use port 465 | false => use port 587
* @property {string} mail.username the smtp Auth username (sender email)
* @property {string} mail.password the smtp Auth password (sender email password)
* @property {number} port The web application port
* @property {string} db mysql connexion url string
* @property {string} secret jsonwebtoken secret
* @property {string} storageLocation le répertoire qui contiendra les fichiers téléchargés
* @property {string} phone le numéro qui enverra les messages
* @property {string} logDir le répertoire où on écrira les logs
* @memberof Myintranet.Config
*/
module.exports = {
mail: {
smtp: "pro3.mail.ovh.net",
port: 587,
ssl: false,
username: "no-reply@my-intranet.fr",
password: "Factit007"
},
sms: {
apiKey: "31e8eb0c",
apiSecret: "Lu0Ab5gRUxiNR0lJ"
},
port: 7070,
db: 'mysql://root:rootroot@127.0.0.1:3306/myIntranet',
secret: "lecodesecretjwtcool",
storageLocation: '../MY_INTRANET_DATA',
combinedlogFile:"combined-local.log",
errorsLogFile:"errors-local.log",
phoneNumber:"33644630505",
defaultAdminEmail:"hassani.ayoub@gmail.com",
logDir: 'logs',
mysqlCli:(process.env.NODE_ENV === 'production') ? "mysql" :"C:\\Users\\hassa\\Desktop\\MySql\\bin\\mysql.exe",
mysqlDump:(process.env.NODE_ENV === 'production') ?"mysqldump":"C:\\Users\\hassa\\Desktop\\MySql\\bin\\mysqldump.exe",
siteUrl: "http://localhost:8080"
}