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