config.js 2.16 KB
Newer Older
Rosanny Sihombing's avatar
Rosanny Sihombing committed
1
2
3
4
module.exports = {
  development: {
    app: {
      name: 'User Account Management',
5
6
7
8
9
10
11
      port: process.env.PORT || 9989,
      host: 'http://localhost:9989'
    },
    passport: {
      strategy: 'saml',
      saml: {
        path: process.env.SAML_PATH || '/saml/SSO',
12
13
14
        entryPoint: process.env.SAML_ENTRY_POINT || 'Saml Entry Point',
        issuer: 'SAML issuer', //local metadata
        logoutUrl: 'SAML logout URL'
15
16
17
18
      }
    },
    database: {
      host: 'localhost',      	  // DB host
19
20
      user: 'usernamedb',          // DB username
      password: 'passworddb',  // DB password
21
22
23
      port: 3306,                 // MySQL port
      dbUser: 'userdb',           // User DB
      host_project: 'localhost', // DB host project db
24
      dbProject: 'projectdb'     // Project DB
25
26
    },
    mailer: {
27
      host: 'mailhost',  // hostname
28
29
      secureConnection: false,        // TLS requires secureConnection to be false
      port: 587,                      // port for secure SMTP
30
31
      authUser: 'mailuser',
      authPass: 'mailpass',
32
      tlsCiphers: 'SSLv3',
33
      from: 'mailfrom',
34
35
36
37
38
39
40
    }
  },
  testing: {
    app: {
      name: 'User Account Management',
      port: process.env.PORT || 9989,
      host: 'https://m4lab.hft-stuttgart.de/account'
Rosanny Sihombing's avatar
Rosanny Sihombing committed
41
42
43
44
45
    },
    passport: {
      strategy: 'saml',
      saml: {
        path: process.env.SAML_PATH || '/saml/SSO',
46
47
48
        entryPoint: process.env.SAML_ENTRY_POINT || 'saml entry point',
        issuer: 'SAML issuer', //testing metadata
        logoutUrl: 'SAML logout URL'
Rosanny Sihombing's avatar
Rosanny Sihombing committed
49
50
51
      }
    },
    database: {
52
53
54
      host: 'dbhost',      	  // DB host
      user: 'dbuser',          // DB username
      password: 'dbpass',  // DB password
Rosanny Sihombing's avatar
Rosanny Sihombing committed
55
      port: 3306,                 // MySQL port
Rosanny Sihombing's avatar
Rosanny Sihombing committed
56
      dbUser: 'userdb',           // User DB
57
58
      host_project: 'dbhost', // DB host project db
      dbProject: 'projectdb'     // Project DB
Rosanny Sihombing's avatar
Rosanny Sihombing committed
59
60
    },
    mailer: {
61
      host: 'mailhost',  // hostname
Rosanny Sihombing's avatar
Rosanny Sihombing committed
62
63
      secureConnection: false,        // TLS requires secureConnection to be false
      port: 587,                      // port for secure SMTP
64
65
      authUser: 'mailuser',
      authPass: 'mailpass',
Rosanny Sihombing's avatar
Rosanny Sihombing committed
66
      tlsCiphers: 'SSLv3',
67
      from: 'mailfrom',
Rosanny Sihombing's avatar
Rosanny Sihombing committed
68
69
    }
  }
70
}