config.ts 2.33 KB
Newer Older
Rosanny Sihombing's avatar
Rosanny Sihombing committed
1
export = {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
2
3
4
  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',
Rosanny Sihombing's avatar
Rosanny Sihombing committed
13
14
15
        entryPoint: 'https://transfer.hft-stuttgart.de/idp2/saml2/idp/SSOService.php',
        issuer: 'sp-account.m4lab.hft-stuttgart.de',
        logoutUrl: 'https://transfer.hft-stuttgart.de/idp/saml2/idp2/SingleLogoutService.php'
16
17
18
      }
    },
    database: {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
19
20
21
22
23
      host: 'localhost', // DB host
      user: 'DBManager', // DB username
      password: 'Stuttgart2019', // DB password
      port: 3306, // MySQL port
      dbUser: 'userdb', // User DB
24
      host_project: 'localhost', // DB host project db
Rosanny Sihombing's avatar
Rosanny Sihombing committed
25
      dbProject: 'projectdb' // Project DB
26
27
    },
    mailer: {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
28
29
30
      host: 'mailhost', // hostname
      secureConnection: false, // TLS requires secureConnection to be false
      port: 587, // port for secure SMTP
Rosanny Sihombing's avatar
Rosanny Sihombing committed
31
      TLS: true,
32
33
      authUser: 'mailuser',
      authPass: 'mailpass',
34
      tlsCiphers: 'SSLv3',
Rosanny Sihombing's avatar
Rosanny Sihombing committed
35
      from: 'mailfrom'
Rosanny Sihombing's avatar
Rosanny Sihombing committed
36
37
    },
    gitlab: {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
38
      token_readWriteProjects: 'PfP27Tj4dNo9zgQ_c6XP'
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
        entryPoint: process.env.SAML_ENTRY_POINT || 'saml entry point',
Rosanny Sihombing's avatar
Rosanny Sihombing committed
53
        issuer: 'SAML issuer', // testing metadata
54
        logoutUrl: 'SAML logout URL'
Rosanny Sihombing's avatar
Rosanny Sihombing committed
55
56
57
      }
    },
    database: {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
58
59
60
61
62
      host: 'dbhost', // DB host
      user: 'dbuser', // DB username
      password: 'dbpass', // DB password
      port: 3306, // MySQL port
      dbUser: 'userdb', // User DB
63
      host_project: 'dbhost', // DB host project db
Rosanny Sihombing's avatar
Rosanny Sihombing committed
64
      dbProject: 'projectdb' // Project DB
Rosanny Sihombing's avatar
Rosanny Sihombing committed
65
66
    },
    mailer: {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
67
68
69
      host: 'mailhost', // hostname
      secureConnection: false, // TLS requires secureConnection to be false
      port: 587, // port for secure SMTP
Rosanny Sihombing's avatar
Rosanny Sihombing committed
70
      TLS: true,
71
72
      authUser: 'mailuser',
      authPass: 'mailpass',
Rosanny Sihombing's avatar
Rosanny Sihombing committed
73
      tlsCiphers: 'SSLv3',
Rosanny Sihombing's avatar
Rosanny Sihombing committed
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
    }
  }
Rosanny Sihombing's avatar
Rosanny Sihombing committed
80
}