-
Notifications
You must be signed in to change notification settings - Fork 0
/
microreact_defaults.js
77 lines (77 loc) · 2.01 KB
/
microreact_defaults.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
70
71
72
73
74
75
76
77
module.exports = {
externalRequests: {
secret: process.env.MICROREACT_ENCRYPTION_SECRET
},
downloadActions: [
{
id: "createnewworkspace",
label: "Create new workspace from selection",
type: "selection",
url: process.env.SOFI_BASE_URL + "/createworkspace?ids="
}
],
auth: {
openidconnect: {
id: "keycloak",
name: "Keycloak",
wellKnown: process.env.AUTH_WELLKNOWN_URI,
type: "oauth",
authorization: {
params: {
scope: "openid email profile"
}
},
checks:[],
idToken: true,
clientSecret: "can-be-any-thing-not-used",
clientId: "SOFI_APP",
idAttribute: "sub"
},
email: {
server: {
host: process.env.SMTP_HOST,
port: parseInt(process.env.SMTP_PORT),
auth: {
user: process.env.SMTP_USER,
pass: process.env.SMTP_PASS
},
secure: process.env.SMTP_SECURE === "true"
},
from: "Microreact <[email protected]>",
subject: "Login link for Microreact",
text: "Hello!\nAccess your account here: http://localhost:80/auth/passwordless/callback?token=<%= tokenToSend %>&uid=",
html: "views/emails/passwordless.html"
},
secret: process.env.AUTH_SECRET,
session: {
maxAge: 2592000,
updateAge: 86400
}
},
baseUrl: process.env.BASE_URL,
bodySizeLimit: "16mb",
experimentalFlags: {
publicFolders: false
},
helpDesk: {
email: "[email protected]",
subject: "Feedback from Microreact.org"
},
mapboxApiAccessToken: "NOT-USED",
mongodb: {
url: process.env.MONGODB_CONNECTION,
database: process.env.MONGODB_DATABASE
},
repoPath: "./files",
showcaseFolders: [],
smtp: {
host: process.env.SMTP_HOST,
port: parseInt(process.env.SMTP_PORT),
auth: {
user: process.env.SMTP_USER,
pass: process.env.SMTP_PASS
},
secure: process.env.SMTP_SECURE === "true",
from: "Microreact <[email protected]>"
}
};