config.js 2.4 KB
Newer Older
Rosanny Sihombing's avatar
Rosanny Sihombing committed
1
2
3
4
5
6
7
8
9
10
11
module.exports = {
  development: {
    app: {
      name: 'Project Page Manager',
      port: process.env.PORT || 8888
    },
    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',
12
        issuer: 'sp-project.m4lab.hft-stuttgart.de',
Rosanny Sihombing's avatar
Rosanny Sihombing committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
        logoutUrl: 'https://m4lab.hft-stuttgart.de/idp/saml2/idp/SingleLogoutService.php'
      }
    },
    database: {
      user: 'DBManager',          // DB username
      password: 'Stuttgart2019',  // DB password
      port: 3306,                 // MySQL port
      dbUser: 'userdb',           // User DB
      host_project: 'localhost', // local
      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',
    }
  },
34
  testing: {
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
    app: {
      name: 'Project Page Manager',
      port: process.env.PORT || 8888
    },
    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-project-testing.m4lab.hft-stuttgart.de',
        logoutUrl: 'https://m4lab.hft-stuttgart.de/idp/saml2/idp/SingleLogoutService.php'
      }
    },
    database: {
      host: 'transfer.hft-stuttgart.de',      	  // DB host
      user: 'DBManager',          // DB username
      password: 'Stuttgart2019',  // DB password
      port: 3306,                 // MySQL port
      dbUser: 'userdb',           // User DB
      host_project: 'm4lab.hft-stuttgart.de', // 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',
    }
Rosanny Sihombing's avatar
Rosanny Sihombing committed
66
67
68
69
70
  },
  production: {
    // to be defined
  }
}