-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.example.js
145 lines (129 loc) · 3.91 KB
/
env.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
const fronts = {};
const api_url = 'http://forus-backend-app/api/v1';
const baseImplementationKey = 'general';
const support_id = false;
const chat_id = false;
const sessions = true;
const google_maps_api_key = '';
const me_app_link = 'https://forus.io/DL';
const ios_ipad_link = 'https://testflight.apple.com/join/gWw1lXyB';
const ios_iphone_link = 'https://testflight.apple.com/join/gWw1lXyB';
const android_link = 'https://media.forus.io/static/me-0.0.5-staging-7-release.apk';
const help_link = 'https://helpcentrum.forus.io';
const use_hash_router = true;
const disable_indexing = true;
const allow_test_errors = false;
const disable_cookie_banner = false;
const read_speaker_id = null;
const read_speaker_region = null;
const aws_rum = null; /*{
appId: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX',
appVersion: '1.0.0',
appRegion: 'eu-west-1',
allowCookies: false,
enableXRay: false,
endpoint: 'XXXXXXXXXXXXXXXXXXXXXXXX',
identityPoolId: 'XXXXXXXXXXXXXXXXXXXXXXXX',
sessionSampleRate: 1,
telemetries: ['errors'],
}*/
const globalConfigs = {
'*': {
useHashRouter: use_hash_router,
'config.api_url': api_url,
'config.sessions': sessions,
'config.aws_rum': aws_rum,
'config.google_maps_api_key': google_maps_api_key,
'config.disable_indexing': disable_indexing,
'config.allow_test_errors': allow_test_errors,
'config.disable_cookie_banner': disable_cookie_banner,
},
'webshop.*': {
'config.read_speaker_id': read_speaker_id,
'config.read_speaker_region': read_speaker_region,
'config.provider_sign_up_filters': {
foo: 'bar',
},
'config.flags': {
fundsMenu: true,
show2FAMenu: true,
logoExtension: '.svg',
showStartButton: true,
genericSearch: true,
},
},
'dashboard.*': {
'config.chat_id': chat_id,
'config.support_id': support_id,
'config.help_link': help_link,
'config.me_app_link': me_app_link,
'config.ios_ipad_link': ios_ipad_link,
'config.ios_iphone_link': ios_iphone_link,
'config.android_link': android_link,
},
};
fronts['webshop.general'] = {
type: 'webshop',
client_key: 'general',
client_key_api: 'nijmegen',
client_type: 'webshop',
webRoot: 'webshop.general',
name: 'General webshop',
default_title: 'General webshop',
config: {},
};
fronts['webshop.nijmegen'] = {
type: 'webshop',
client_key: 'nijmegen',
client_type: 'webshop',
name: 'Nijmegen webshop',
default_title: 'Nijmegen webshop',
};
fronts['dashboard.sponsor'] = {
type: 'dashboard',
client_key: 'general',
client_type: 'sponsor',
webRoot: 'dashboard.sponsor',
name: 'Sponsor dashboard',
default_title: 'Sponsor dashboard',
config: {},
};
fronts['dashboard.provider'] = {
type: 'dashboard',
client_key: 'general',
client_type: 'provider',
name: 'Provider dashboard',
default_title: 'Provider dashboard',
webRoot: 'dashboard.provider',
config: {},
};
fronts['dashboard.validator'] = {
type: 'dashboard',
client_key: baseImplementationKey,
client_type: 'validator',
name: 'Validator dashboard',
default_title: 'Validator dashboard',
webRoot: 'dashboard.validator',
config: {},
};
fronts['backend'] = {
type: 'backend',
name: 'Backend',
client_key: 'general',
assetsPath: '../forus-backend/public/assets',
appFileName: '../../forus-backend/public/assets/js/app.js',
withoutHtml: true,
client_type: 'pin_code-auth',
config: {},
};
// eslint-disable-next-line no-undef
module.exports = {
fronts: fronts,
globalConfigs: globalConfigs,
enableOnly: ['webshop.general', 'dashboard.sponsor', 'dashboard.provider', 'dashboard.validator'],
disableOnly: [],
httpsKey: null,
httpsCert: null,
buildGzipFiles: false,
nonce: null,
};