-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
60 lines (58 loc) · 1.32 KB
/
config.js
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
/* SECRETS THAT MUST BE DEFINED IN ENV VARIABLES
**
** NUCLEOTID_OAUTH_SIGNATURE_SECRET
** POSTGRES_USER
** POSTGRES_PASSWORD
** NUCLEOTID_GOOGLE_OAUTH_CLIENTID
** NUCLEOTID_GOOGLE_OAUTH_SECRET
** NUCLEOTID_MAILER_ADDRESS
** NUCLEOTID_MAILER_PASSWORD
**
*/
module.exports = {
server: {
dev: {
https_port: '3443',
database_host: '192.168.100.3',
backend_url: 'https://nucleotid-dev.com:3443',
frontend_url: 'https://nucleotid-dev.com',
cors_origins: ['https://nucleotid-dev.com']
},
test: {
https_port: '3443',
database_host: '192.168.100.13',
backend_url: 'https://192.168.100.12:3443',
frontend_url: 'https://nucleotid-dev.com',
cors_origins: ['https://nucleotid-dev.com']
},
production: {
https_port: '443',
database_host: '',
backend_url: 'https://api.nucleotid.com',
frontend_url: 'https://nucleotid.com',
cors_origins: ['https://nucleotid.com', 'https://www.nucleotid.com']
}
},
user: {
given_name: {
max_len: 25,
min_len: 2,
max_words: 2
},
family_name: {
min_len: 2,
max_len: 50,
max_words: 5
},
email: {
max_len: 50
},
password: {
min_len: 6,
max_len: 30,
},
birthdate: {
max_age: 150
}
}
};