config.js 2.7 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
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
      port: process.env.PORT || 9989,
      host: 'http://localhost:9989'
    },
    passport: {
      strategy: 'saml',
      saml: {
        path: process.env.SAML_PATH || '/saml/SSO',
        entryPoint: process.env.SAML_ENTRY_POINT || 'https://m4lab.hft-stuttgart.de/idp/saml2/idp/SSOService.php',
        issuer: 'sp-account.m4lab.hft-stuttgart.de', //local metadata
        logoutUrl: 'https://m4lab.hft-stuttgart.de/idp/saml2/idp/SingleLogoutService.php'
      }
    },
    database: {
      host: 'localhost',      	  // DB host
      user: 'DBManager',          // DB username
      password: 'Stuttgart2019',  // DB password
      port: 3306,                 // MySQL port
      dbUser: 'userdb',           // User DB
      host_project: 'localhost', // DB host project db
      dbProject: 'projectDB'     // Project DB
    },
    mailer: {
      host: 'mail.hft-stuttgart.de',  // hostname
      secureConnection: false,        // TLS requires secureConnection to be false
      port: 587,                      // port for secure SMTP
      authUser: 'ad\\support-transfer',
      authPass: '6laumri2',
      tlsCiphers: 'SSLv3',
      from: 'support-transfer@hft-stuttgart.de',
    }
  },
  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',
Wolfgang Knopki's avatar
Wolfgang Knopki committed
46
        entryPoint: process.env.SAML_ENTRY_POINT || 'https://m4lab.hft-stuttgart.de/idp/saml2/idp/SSOService.php',
Varun Srivastava's avatar
Varun Srivastava committed
47
48
        //issuer: 'sp-account.m4lab.hft-stuttgart.de', //local metadata
        issuer: 'sp-account-testing.m4lab.hft-stuttgart.de', //testing metadata
49
        //issuer: 'sp-account-prod.m4lab.hft-stuttgart.de', //production metadata
Wolfgang Knopki's avatar
Wolfgang Knopki committed
50
        logoutUrl: 'https://m4lab.hft-stuttgart.de/idp/saml2/idp/SingleLogoutService.php'
Rosanny Sihombing's avatar
Rosanny Sihombing committed
51
52
53
      }
    },
    database: {
54
      host: 'transfer.hft-stuttgart.de',      	  // DB host
Rosanny Sihombing's avatar
Rosanny Sihombing committed
55
56
57
      user: 'DBManager',          // DB username
      password: 'Stuttgart2019',  // DB password
      port: 3306,                 // MySQL port
Rosanny Sihombing's avatar
Rosanny Sihombing committed
58
      dbUser: 'userdb',           // User DB
59
      host_project: 'm4lab.hft-stuttgart.de', // DB host project db
Rosanny Sihombing's avatar
Rosanny Sihombing committed
60
      dbProject: 'projectDB'     // Project DB
Rosanny Sihombing's avatar
Rosanny Sihombing committed
61
62
63
64
65
66
67
68
69
70
71
    },
    mailer: {
      host: 'mail.hft-stuttgart.de',  // hostname
      secureConnection: false,        // TLS requires secureConnection to be false
      port: 587,                      // port for secure SMTP
      authUser: 'ad\\support-transfer',
      authPass: '6laumri2',
      tlsCiphers: 'SSLv3',
      from: 'support-transfer@hft-stuttgart.de',
    }
  }
72
}