This repository has been archived by the owner on Jan 28, 2024. It is now read-only.
/
params.php
142 lines (112 loc) · 5.68 KB
/
params.php
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
<?php
return [
// base public url to the storage directory (could be also a cdn address if you use S3 or other storage mechanism)
'baseStorageUrl' => 'https://example.com/storage',
// url to the SPA (used mainly in mail templates)
'appUrl' => 'https://example.com/#/',
// indicates the URI to return the user after oauth authorization
'authClientRedirectUri' => 'https://example.com/#/auth-callback',
// url to the user activation confirmation page (used mainly in mail templates)
// the following variables are available: {token}
'activationUrl' => 'https://example.com/#/activate/{token}',
// url to the user password reset confirmation page (used mainly in mail templates)
// the following variables are available: {token}
'passwordResetUrl' => 'https://example.com/#/reset-password/{token}',
// url to the user email change confirmation page (used mainly in mail templates)
// the following variables are available: {token}
'emailChangeUrl' => 'https://example.com/#/change-email/{token}',
// url to the project preview/link page (used mainly in mail templates)
// the following variables are available: {slug}
'projectLinkUrl' => 'https://example.com/#/{slug}',
// url to the guest comment preview page (used mainly in mail templates)
// the following variables are available: {slug}, {prototypeId}, {screenId}, {commentId}
'projectLinkCommentViewUrl' => 'https://example.com/#/{slug}/prototypes/{prototypeId}/screens/{screenId}?mode=comments&commentId={commentId}',
// url to the admin comment view page (used mainly in mail templates)
// the following variables are available: {projectId}, {prototypeId}, {screenId}, {commentId}
'commentViewUrl' => 'https://example.com/#/projects/{projectId}/prototypes/{prototypeId}/screens/{screenId}?mode=comments&commentId={commentId}',
// email address used to send system emails from
'noreplyEmail' => 'noreply@example.com',
// support email address (also used for receiving users feedback)
'supportEmail' => 'support@example.com',
// Whether to enable the default email password auth flow (default to `true`)
// If set to `false`, the application will rely only on the
// registered oauth2 clients for authorization
'emailPasswordAuth' => true,
// list of email address domains that are allowed to register (eg. `['example.com', 'test.com']`)
// or in other words - only emails from domains that are listed here could register
// (leave empty to skip the filter)
'onlyDomainsRegisterFilter' => [],
// list of email address domains that are not allowed to register (eg. `['example.com', 'test.com']`)
// or in other words - only emails from domains that are NOT listed here could register
// (leave empty to skip the filter)
'exceptDomainsRegisterFilter' => [],
// flag used to enable/disable project admins search by only part of their email address or name
'looseProjectUsersSearch' => false,
// optional salt for the storage directories to prevent files enumeration
// NB! Changing the value after initialization could result in corrupted or invalid files path.
// (should be auto populated in `params-local.php` on application init)
'storageKeysSalt' => '',
// user password reset token duration time in seconds (default to 30 minutes)
'passwordResetTokenDuration' => 1800,
// user access token duration time in seconds (default to 2 weeks)
'accessTokenDuration' => 1209600,
// user access token secret key
// (should be auto populated in `params-local.php` on application init)
'accessTokenSecret' => '',
// user activation token duration time in seconds (default to 2 weeks)
'activationTokenDuration' => 1209600,
// user activation token secret key
// (should be auto populated in `params-local.php` on application init)
'activationTokenSecret' => '',
// user email change token duration time in seconds (default to 30 minutes)
'emailChangeTokenDuration' => 1800,
// user email change token secret key
// (should be auto populated in `params-local.php` on application init)
'emailChangeTokenSecret' => '',
// project preview token duration time in seconds (default to 30 days)
'previewTokenDuration' => 2592000,
// project preview token secret key
// (should be auto populated in `params-local.php` on application init)
'previewTokenSecret' => '',
// maximum allowed user avatar file upload size in MB
'maxAvatarUploadSize' => 3,
// list of allowed user avatar file formats to upload
'allowedAvatarMimetypes' => [
'image/png', 'image/jpeg', 'image/svg+xml', 'image/bmp',
],
// maximum allowed scren file upload size in MB
'maxScreenUploadSize' => 10,
// list of allowed screen file formats to upload
'allowedScreenMimeTypes' => [
'image/png', 'image/jpeg', 'image/svg+xml', 'image/bmp',
],
// maximum allowed guideline asset file upload size in MB
'maxGuidelineAssetUploadSize' => 15,
// list of allowed guideline asset file formats to upload
'allowedGuidelineAssetMimeTypes' => [
// png
'image/png',
// jpg/jpeg
'image/jpeg',
// svg
'image/svg+xml',
// bmp
'image/bmp',
// eot
'application/vnd.ms-fontobject',
// ttf
'font/ttf', 'application/x-font-ttf',
// woff/woff2
'font/woff', 'font/woff2', 'application/font-woff',
// psd
'image/vnd.adobe.photoshop',
// ai, eps
'application/postscript',
// pdf
'application/pdf',
// zip
'application/zip',
// rar
'application/x-rar-compressed',
],
];