config.ts 2.24 KB
Newer Older
Rosanny Sihombing's avatar
Rosanny Sihombing committed
1
module.exports = {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
2
3
4
  development: {
    app: {
      name: 'User Account Management',
Rosanny Sihombing's avatar
Rosanny Sihombing committed
5
      port: process.env.PORT ?? 9989,
Rosanny Sihombing's avatar
Rosanny Sihombing committed
6
7
8
9
10
11
      host: 'http://localhost:9989',
      sessionSecret: 'thisisasecret'
    },
    passport: {
      strategy: 'saml',
      saml: {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
12
        path: process.env.SAML_PATH ?? '/saml/SSO',
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
34
35
36
37
38
39
40
41
42
43
        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',
Rosanny Sihombing's avatar
Rosanny Sihombing committed
44
      port: process.env.PORT ?? 9989,
Rosanny Sihombing's avatar
Rosanny Sihombing committed
45
46
47
48
49
50
      host: 'https://m4lab.hft-stuttgart.de/account',
      sessionSecret: 'thisisasecret'
    },
    passport: {
      strategy: 'saml',
      saml: {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
51
52
        path: process.env.SAML_PATH ?? '/saml/SSO',
        entryPoint: process.env.SAML_ENTRY_POINT ?? 'saml entry point',
Rosanny Sihombing's avatar
Rosanny Sihombing committed
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
        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'
    }
  }
}
Rosanny Sihombing's avatar
Rosanny Sihombing committed
81
82

export {}