-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-example.js
69 lines (69 loc) · 1.84 KB
/
config-example.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
59
60
61
62
63
64
65
66
67
68
69
module.exports = {
db: {
user: "api",
host: "localhost",
database: "dev",
password: "Password01",
port: 5432,
ssl: true
},
google: {
clientID: "xxxx",
clientSecret: "xxxx",
callbackURL: "http://localhost/auth/google/callback"
},
facebook: {
clientID: "xxxx",
clientSecret: "xxxx",
callbackURL: "http://localhost/auth/facebook/callback",
profileFields: ["id", "first_name", "last_name", "email"]
},
linkedin: {
consumerKey: "xxxx",
consumerSecret: "xxx",
callbackURL: "http://localhost/auth/linkedin/callback",
profileFields: ["id", "first-name", "last-name", "email-address"]
},
graphQl: {
dynamicJson: true,
graphiql: true,
pgDefaultRole: "anonymous",
jwtPgTypeIdentifier: "public.jwt_token",
jwtSecret: "xxx",
watchPg: true
},
aws: {
bucketName: "speleowebgis",
documentsPrefix: "documents/",
thumbsPrefix: "thumbnails/",
endpoint: "s3.eu-central-1.amazonaws.com",
region: "eu-central-1"
},
fileTypes: {
images: ["image/jpeg", "image/png", "image/tiff", "image/gif"],
documents: [
"application/msword",
"application/pdf",
"application/vnd.ms-excel",
"application/vnd.ms-office",
"application/xml",
"text/html",
"text/plain"
],
},
thumbnails: {
dimensions: "100x100",
maxWidht: 100,
maxHeight: 100
},
miniatures: {
dimensions: "1024x768",
maxWidht: 1024,
maxHeight: 768
},
sessionSecret: "xxx",
sessionCookiePath: "/auth",
loginTarget: "/web/home",
jwtMaxAge: "60s",
tiffCompressThreshold: 10 * 1024 * 1024
};