config.js 2.49 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
      TLS: true,                      // sets requireTLS
32
33
      authUser: 'mailuser',
      authPass: 'mailpass',
34
      tlsCiphers: 'SSLv3',
35
      from: 'mailfrom',
Rosanny Sihombing's avatar
Rosanny Sihombing committed
36
37
38
    },
    gitlab: {
      token_readWriteProjects: 'token-goes-here'
39
40
41
42
43
44
    }
  },
  testing: {
    app: {
      name: 'User Account Management',
      port: process.env.PORT || 9989,
Rosanny Sihombing's avatar
Rosanny Sihombing committed
45
46
      host: 'https://m4lab.hft-stuttgart.de/account',
      sessionSecret: 'thisisasecret'
Rosanny Sihombing's avatar
Rosanny Sihombing committed
47
48
49
50
51
    },
    passport: {
      strategy: 'saml',
      saml: {
        path: process.env.SAML_PATH || '/saml/SSO',
52
53
54
        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
55
56
57
      }
    },
    database: {
58
59
60
      host: 'dbhost',      	  // DB host
      user: 'dbuser',          // DB username
      password: 'dbpass',  // DB password
Rosanny Sihombing's avatar
Rosanny Sihombing committed
61
      port: 3306,                 // MySQL port
Rosanny Sihombing's avatar
Rosanny Sihombing committed
62
      dbUser: 'userdb',           // User DB
63
64
      host_project: 'dbhost', // DB host project db
      dbProject: 'projectdb'     // Project DB
Rosanny Sihombing's avatar
Rosanny Sihombing committed
65
66
    },
    mailer: {
67
      host: 'mailhost',  // hostname
Rosanny Sihombing's avatar
Rosanny Sihombing committed
68
69
      secureConnection: false,        // TLS requires secureConnection to be false
      port: 587,                      // port for secure SMTP
70
      TLS: true,                      // sets requireTLS
71
72
      authUser: 'mailuser',
      authPass: 'mailpass',
Rosanny Sihombing's avatar
Rosanny Sihombing committed
73
      tlsCiphers: 'SSLv3',
74
      from: 'mailfrom',
Rosanny Sihombing's avatar
Rosanny Sihombing committed
75
76
77
    },
    gitlab: {
      token_readWriteProjects: 'token-goes-here'
Rosanny Sihombing's avatar
Rosanny Sihombing committed
78
79
    }
  }
80
}