config.ts 2.23 KB
Newer Older
Rosanny Sihombing's avatar
Rosanny Sihombing committed
1
2
3
4
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
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
export = {
  development: {
    app: {
      name: 'User Account Management',
      port: process.env.PORT || 9989,
      host: 'http://localhost:9989',
      sessionSecret: 'thisisasecret'
    },
    passport: {
      strategy: 'saml',
      saml: {
        path: process.env.SAML_PATH || '/saml/SSO',
        entryPoint: process.env.SAML_ENTRY_POINT || 'saml entry point',
        issuer: 'SAML issuer',
        logoutUrl: 'SAML logout URL'
      }
    },
    database: {
      host: 'localhost', // DB host
      user: 'dbuser', // DB username
      password: 'dbpass', // DB password
      port: 3306, // MySQL port
      dbUser: 'userdb', // User DB
      host_project: 'localhost', // DB host project db
      dbProject: 'projectdb' // Project DB
    },
    mailer: {
      host: 'mailhost', // hostname
      secureConnection: false, // TLS requires secureConnection to be false
      port: 587, // port for secure SMTP
      TLS: true,
      authUser: 'mailuser',
      authPass: 'mailpass',
      tlsCiphers: 'SSLv3',
      from: 'mailfrom'
    },
    gitlab: {
      token_readWriteProjects: 'token-goes-here'
    }
  },
  testing: {
    app: {
      name: 'User Account Management',
      port: process.env.PORT || 9989,
      host: 'https://m4lab.hft-stuttgart.de/account',
      sessionSecret: 'thisisasecret'
    },
    passport: {
      strategy: 'saml',
      saml: {
        path: process.env.SAML_PATH || '/saml/SSO',
        entryPoint: process.env.SAML_ENTRY_POINT || 'saml entry point',
        issuer: 'SAML issuer', // testing metadata
        logoutUrl: 'SAML logout URL'
      }
    },
    database: {
      host: 'dbhost', // DB host
      user: 'dbuser', // DB username
      password: 'dbpass', // DB password
      port: 3306, // MySQL port
      dbUser: 'userdb', // User DB
      host_project: 'dbhost', // DB host project db
      dbProject: 'projectdb' // Project DB
    },
    mailer: {
      host: 'mailhost', // hostname
      secureConnection: false, // TLS requires secureConnection to be false
      port: 587, // port for secure SMTP
      TLS: true,
      authUser: 'mailuser',
      authPass: 'mailpass',
      tlsCiphers: 'SSLv3',
      from: 'mailfrom'
    },
    gitlab: {
      token_readWriteProjects: 'token-goes-here'
    }
  }
}