@mattermost/playwright-lib 10.6.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/README.md +214 -0
  2. package/dist/asset/mattermost-icon_128x128.png +0 -0
  3. package/dist/browser_context.d.ts +17 -0
  4. package/dist/browser_context.js +71 -0
  5. package/dist/browser_context.js.map +1 -0
  6. package/dist/constant.d.ts +3 -0
  7. package/dist/constant.js +8 -0
  8. package/dist/constant.js.map +1 -0
  9. package/dist/file.d.ts +42 -0
  10. package/dist/file.js +74 -0
  11. package/dist/file.js.map +1 -0
  12. package/dist/flag.d.ts +7 -0
  13. package/dist/flag.js +76 -0
  14. package/dist/flag.js.map +1 -0
  15. package/dist/global_setup.d.ts +3 -0
  16. package/dist/global_setup.js +173 -0
  17. package/dist/global_setup.js.map +1 -0
  18. package/dist/index.d.ts +9 -0
  19. package/dist/index.js +47 -0
  20. package/dist/index.js.map +1 -0
  21. package/dist/mock_browser_api.d.ts +31 -0
  22. package/dist/mock_browser_api.js +71 -0
  23. package/dist/mock_browser_api.js.map +1 -0
  24. package/dist/server/channel.d.ts +12 -0
  25. package/dist/server/channel.js +25 -0
  26. package/dist/server/channel.js.map +1 -0
  27. package/dist/server/client.d.ts +16 -0
  28. package/dist/server/client.js +39 -0
  29. package/dist/server/client.js.map +1 -0
  30. package/dist/server/default_config.d.ts +2 -0
  31. package/dist/server/default_config.js +755 -0
  32. package/dist/server/default_config.js.map +1 -0
  33. package/dist/server/index.d.ts +7 -0
  34. package/dist/server/init.d.ts +23 -0
  35. package/dist/server/init.js +73 -0
  36. package/dist/server/init.js.map +1 -0
  37. package/dist/server/post.d.ts +2 -0
  38. package/dist/server/post.js +31 -0
  39. package/dist/server/post.js.map +1 -0
  40. package/dist/server/team.d.ts +2 -0
  41. package/dist/server/team.js +18 -0
  42. package/dist/server/team.js.map +1 -0
  43. package/dist/server/user.d.ts +3 -0
  44. package/dist/server/user.js +33 -0
  45. package/dist/server/user.js.map +1 -0
  46. package/dist/test_action.d.ts +4 -0
  47. package/dist/test_action.js +24 -0
  48. package/dist/test_action.js.map +1 -0
  49. package/dist/test_config.d.ts +20 -0
  50. package/dist/test_config.js +82 -0
  51. package/dist/test_config.js.map +1 -0
  52. package/dist/test_fixture.d.ts +72 -0
  53. package/dist/test_fixture.js +172 -0
  54. package/dist/test_fixture.js.map +1 -0
  55. package/dist/types.d.ts +91 -0
  56. package/dist/ui/components/channels/app_bar.d.ts +7 -0
  57. package/dist/ui/components/channels/app_bar.js +20 -0
  58. package/dist/ui/components/channels/app_bar.js.map +1 -0
  59. package/dist/ui/components/channels/center_view.d.ts +52 -0
  60. package/dist/ui/components/channels/center_view.js +124 -0
  61. package/dist/ui/components/channels/center_view.js.map +1 -0
  62. package/dist/ui/components/channels/delete_post_confirmation_dialog.d.ts +11 -0
  63. package/dist/ui/components/channels/delete_post_confirmation_dialog.js +35 -0
  64. package/dist/ui/components/channels/delete_post_confirmation_dialog.js.map +1 -0
  65. package/dist/ui/components/channels/delete_post_modal.d.ts +8 -0
  66. package/dist/ui/components/channels/delete_post_modal.js +26 -0
  67. package/dist/ui/components/channels/delete_post_modal.js.map +1 -0
  68. package/dist/ui/components/channels/emoji_gif_picker.d.ts +16 -0
  69. package/dist/ui/components/channels/emoji_gif_picker.js +50 -0
  70. package/dist/ui/components/channels/emoji_gif_picker.js.map +1 -0
  71. package/dist/ui/components/channels/find_channels_modal.d.ts +8 -0
  72. package/dist/ui/components/channels/find_channels_modal.js +22 -0
  73. package/dist/ui/components/channels/find_channels_modal.js.map +1 -0
  74. package/dist/ui/components/channels/generic_confirm_modal.d.ts +16 -0
  75. package/dist/ui/components/channels/generic_confirm_modal.js +40 -0
  76. package/dist/ui/components/channels/generic_confirm_modal.js.map +1 -0
  77. package/dist/ui/components/channels/header.d.ts +6 -0
  78. package/dist/ui/components/channels/header.js +18 -0
  79. package/dist/ui/components/channels/header.js.map +1 -0
  80. package/dist/ui/components/channels/message_priority.d.ts +18 -0
  81. package/dist/ui/components/channels/message_priority.js +66 -0
  82. package/dist/ui/components/channels/message_priority.js.map +1 -0
  83. package/dist/ui/components/channels/post.d.ts +29 -0
  84. package/dist/ui/components/channels/post.js +63 -0
  85. package/dist/ui/components/channels/post.js.map +1 -0
  86. package/dist/ui/components/channels/post_create.d.ts +41 -0
  87. package/dist/ui/components/channels/post_create.js +118 -0
  88. package/dist/ui/components/channels/post_create.js.map +1 -0
  89. package/dist/ui/components/channels/post_dot_menu.d.ts +20 -0
  90. package/dist/ui/components/channels/post_dot_menu.js +47 -0
  91. package/dist/ui/components/channels/post_dot_menu.js.map +1 -0
  92. package/dist/ui/components/channels/post_edit.d.ts +21 -0
  93. package/dist/ui/components/channels/post_edit.js +76 -0
  94. package/dist/ui/components/channels/post_edit.js.map +1 -0
  95. package/dist/ui/components/channels/post_menu.d.ts +26 -0
  96. package/dist/ui/components/channels/post_menu.js +54 -0
  97. package/dist/ui/components/channels/post_menu.js.map +1 -0
  98. package/dist/ui/components/channels/post_reminder_menu.d.ts +11 -0
  99. package/dist/ui/components/channels/post_reminder_menu.js +29 -0
  100. package/dist/ui/components/channels/post_reminder_menu.js.map +1 -0
  101. package/dist/ui/components/channels/restore_post_confirmation_dialog.d.ts +10 -0
  102. package/dist/ui/components/channels/restore_post_confirmation_dialog.js +30 -0
  103. package/dist/ui/components/channels/restore_post_confirmation_dialog.js.map +1 -0
  104. package/dist/ui/components/channels/scheduled_draft_menu.d.ts +8 -0
  105. package/dist/ui/components/channels/scheduled_draft_menu.js +23 -0
  106. package/dist/ui/components/channels/scheduled_draft_menu.js.map +1 -0
  107. package/dist/ui/components/channels/scheduled_draft_modal.d.ts +20 -0
  108. package/dist/ui/components/channels/scheduled_draft_modal.js +84 -0
  109. package/dist/ui/components/channels/scheduled_draft_modal.js.map +1 -0
  110. package/dist/ui/components/channels/search_popover.d.ts +15 -0
  111. package/dist/ui/components/channels/search_popover.js +43 -0
  112. package/dist/ui/components/channels/search_popover.js.map +1 -0
  113. package/dist/ui/components/channels/settings/notification_settings.d.ts +13 -0
  114. package/dist/ui/components/channels/settings/notification_settings.js +41 -0
  115. package/dist/ui/components/channels/settings/notification_settings.js.map +1 -0
  116. package/dist/ui/components/channels/settings/settings_modal.d.ts +11 -0
  117. package/dist/ui/components/channels/settings/settings_modal.js +32 -0
  118. package/dist/ui/components/channels/settings/settings_modal.js.map +1 -0
  119. package/dist/ui/components/channels/sidebar_left.d.ts +24 -0
  120. package/dist/ui/components/channels/sidebar_left.js +54 -0
  121. package/dist/ui/components/channels/sidebar_left.js.map +1 -0
  122. package/dist/ui/components/channels/sidebar_right.d.ts +38 -0
  123. package/dist/ui/components/channels/sidebar_right.js +87 -0
  124. package/dist/ui/components/channels/sidebar_right.js.map +1 -0
  125. package/dist/ui/components/channels/thread_footer.d.ts +11 -0
  126. package/dist/ui/components/channels/thread_footer.js +27 -0
  127. package/dist/ui/components/channels/thread_footer.js.map +1 -0
  128. package/dist/ui/components/channels/user_profile_popover.d.ts +7 -0
  129. package/dist/ui/components/channels/user_profile_popover.js +21 -0
  130. package/dist/ui/components/channels/user_profile_popover.js.map +1 -0
  131. package/dist/ui/components/footer.d.ts +11 -0
  132. package/dist/ui/components/footer.js +28 -0
  133. package/dist/ui/components/footer.js.map +1 -0
  134. package/dist/ui/components/global_header.d.ts +15 -0
  135. package/dist/ui/components/global_header.js +46 -0
  136. package/dist/ui/components/global_header.js.map +1 -0
  137. package/dist/ui/components/index.d.ts +73 -0
  138. package/dist/ui/components/index.js +77 -0
  139. package/dist/ui/components/index.js.map +1 -0
  140. package/dist/ui/components/main_header.d.ts +8 -0
  141. package/dist/ui/components/main_header.js +22 -0
  142. package/dist/ui/components/main_header.js.map +1 -0
  143. package/dist/ui/components/system_console/navbar.d.ts +6 -0
  144. package/dist/ui/components/system_console/navbar.js +18 -0
  145. package/dist/ui/components/system_console/navbar.js.map +1 -0
  146. package/dist/ui/components/system_console/sections/system_users/column_toggle_menu.d.ts +22 -0
  147. package/dist/ui/components/system_console/sections/system_users/column_toggle_menu.js +47 -0
  148. package/dist/ui/components/system_console/sections/system_users/column_toggle_menu.js.map +1 -0
  149. package/dist/ui/components/system_console/sections/system_users/feature_discovery.d.ts +10 -0
  150. package/dist/ui/components/system_console/sections/system_users/feature_discovery.js +24 -0
  151. package/dist/ui/components/system_console/sections/system_users/feature_discovery.js.map +1 -0
  152. package/dist/ui/components/system_console/sections/system_users/filter_menu.d.ts +21 -0
  153. package/dist/ui/components/system_console/sections/system_users/filter_menu.js +42 -0
  154. package/dist/ui/components/system_console/sections/system_users/filter_menu.js.map +1 -0
  155. package/dist/ui/components/system_console/sections/system_users/filter_popover.d.ts +30 -0
  156. package/dist/ui/components/system_console/sections/system_users/filter_popover.js +61 -0
  157. package/dist/ui/components/system_console/sections/system_users/filter_popover.js.map +1 -0
  158. package/dist/ui/components/system_console/sections/system_users/mobile_security.d.ts +23 -0
  159. package/dist/ui/components/system_console/sections/system_users/mobile_security.js +56 -0
  160. package/dist/ui/components/system_console/sections/system_users/mobile_security.js.map +1 -0
  161. package/dist/ui/components/system_console/sections/system_users/system_users.d.ts +58 -0
  162. package/dist/ui/components/system_console/sections/system_users/system_users.js +114 -0
  163. package/dist/ui/components/system_console/sections/system_users/system_users.js.map +1 -0
  164. package/dist/ui/components/system_console/sidebar.d.ts +17 -0
  165. package/dist/ui/components/system_console/sidebar.js +37 -0
  166. package/dist/ui/components/system_console/sidebar.js.map +1 -0
  167. package/dist/ui/pages/channels.d.ts +31 -0
  168. package/dist/ui/pages/channels.js +79 -0
  169. package/dist/ui/pages/channels.js.map +1 -0
  170. package/dist/ui/pages/drafts.d.ts +30 -0
  171. package/dist/ui/pages/drafts.js +114 -0
  172. package/dist/ui/pages/drafts.js.map +1 -0
  173. package/dist/ui/pages/index.d.ts +19 -0
  174. package/dist/ui/pages/index.js +34 -0
  175. package/dist/ui/pages/index.js.map +1 -0
  176. package/dist/ui/pages/landing_login.d.ts +11 -0
  177. package/dist/ui/pages/landing_login.js +36 -0
  178. package/dist/ui/pages/landing_login.js.map +1 -0
  179. package/dist/ui/pages/login.d.ts +25 -0
  180. package/dist/ui/pages/login.js +62 -0
  181. package/dist/ui/pages/login.js.map +1 -0
  182. package/dist/ui/pages/reset_password.d.ts +15 -0
  183. package/dist/ui/pages/reset_password.js +44 -0
  184. package/dist/ui/pages/reset_password.js.map +1 -0
  185. package/dist/ui/pages/scheduled_draft.d.ts +38 -0
  186. package/dist/ui/pages/scheduled_draft.js +144 -0
  187. package/dist/ui/pages/scheduled_draft.js.map +1 -0
  188. package/dist/ui/pages/signup.d.ts +31 -0
  189. package/dist/ui/pages/signup.js +78 -0
  190. package/dist/ui/pages/signup.js.map +1 -0
  191. package/dist/ui/pages/system_console.d.ts +26 -0
  192. package/dist/ui/pages/system_console.js +64 -0
  193. package/dist/ui/pages/system_console.js.map +1 -0
  194. package/dist/util.d.ts +29 -0
  195. package/dist/util.js +51 -0
  196. package/dist/util.js.map +1 -0
  197. package/dist/visual/index.d.ts +3 -0
  198. package/dist/visual/index.js +37 -0
  199. package/dist/visual/index.js.map +1 -0
  200. package/dist/visual/percy.d.ts +2 -0
  201. package/dist/visual/percy.js +23 -0
  202. package/dist/visual/percy.js.map +1 -0
  203. package/package.json +68 -0
@@ -0,0 +1,755 @@
1
+ 'use strict';
2
+
3
+ var merge = require('deepmerge');
4
+ var config = require('@mattermost/types/config');
5
+ var test_config = require('../test_config.js');
6
+
7
+ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
8
+ // See LICENSE.txt for license information.
9
+ function getOnPremServerConfig() {
10
+ return merge(defaultServerConfig, onPremServerConfig());
11
+ }
12
+ // On-prem setting that is different from the default
13
+ const onPremServerConfig = () => {
14
+ return {
15
+ ClusterSettings: {
16
+ Enable: test_config.testConfig.haClusterEnabled,
17
+ ClusterName: test_config.testConfig.haClusterName,
18
+ },
19
+ EmailSettings: {
20
+ PushNotificationServer: test_config.testConfig.pushNotificationServer,
21
+ },
22
+ LogSettings: {
23
+ EnableDiagnostics: false,
24
+ },
25
+ PasswordSettings: {
26
+ MinimumLength: 5,
27
+ Lowercase: false,
28
+ Number: false,
29
+ Uppercase: false,
30
+ Symbol: false,
31
+ EnableForgotLink: true,
32
+ },
33
+ PluginSettings: {
34
+ EnableUploads: true,
35
+ PluginStates: {
36
+ 'com.mattermost.calls': {
37
+ Enable: false,
38
+ },
39
+ 'com.mattermost.nps': {
40
+ Enable: false,
41
+ },
42
+ playbooks: {
43
+ Enable: true,
44
+ },
45
+ },
46
+ },
47
+ ServiceSettings: {
48
+ SiteURL: test_config.testConfig.baseURL,
49
+ EnableOnboardingFlow: false,
50
+ EnableSecurityFixAlert: false,
51
+ GiphySdkKey: 's0glxvzVg9azvPipKxcPLpXV0q1x1fVP',
52
+ EnableTesting: true,
53
+ },
54
+ TeamSettings: {
55
+ EnableOpenServer: true,
56
+ MaxUsersPerTeam: 2000,
57
+ },
58
+ };
59
+ };
60
+ // Should be based only from the generated default config from ./server via "make config-reset"
61
+ // Based on v10.5 server
62
+ const defaultServerConfig = {
63
+ ServiceSettings: {
64
+ SiteURL: '',
65
+ WebsocketURL: '',
66
+ LicenseFileLocation: '',
67
+ ListenAddress: ':8065',
68
+ ConnectionSecurity: '',
69
+ TLSCertFile: '',
70
+ TLSKeyFile: '',
71
+ TLSMinVer: '1.2',
72
+ TLSStrictTransport: false,
73
+ TLSStrictTransportMaxAge: 63072000,
74
+ TLSOverwriteCiphers: [],
75
+ UseLetsEncrypt: false,
76
+ LetsEncryptCertificateCacheFile: './config/letsencrypt.cache',
77
+ Forward80To443: false,
78
+ TrustedProxyIPHeader: [],
79
+ ReadTimeout: 300,
80
+ WriteTimeout: 300,
81
+ IdleTimeout: 60,
82
+ MaximumLoginAttempts: 10,
83
+ GoroutineHealthThreshold: -1,
84
+ EnableOAuthServiceProvider: true,
85
+ EnableIncomingWebhooks: true,
86
+ EnableOutgoingWebhooks: true,
87
+ EnableOutgoingOAuthConnections: false,
88
+ EnableCommands: true,
89
+ OutgoingIntegrationRequestsTimeout: 30,
90
+ EnablePostUsernameOverride: false,
91
+ EnablePostIconOverride: false,
92
+ GoogleDeveloperKey: '',
93
+ EnableLinkPreviews: true,
94
+ EnablePermalinkPreviews: true,
95
+ RestrictLinkPreviews: '',
96
+ EnableTesting: false,
97
+ EnableDeveloper: false,
98
+ DeveloperFlags: '',
99
+ EnableClientPerformanceDebugging: false,
100
+ EnableSecurityFixAlert: true,
101
+ EnableInsecureOutgoingConnections: false,
102
+ AllowedUntrustedInternalConnections: '',
103
+ EnableMultifactorAuthentication: false,
104
+ EnforceMultifactorAuthentication: false,
105
+ EnableUserAccessTokens: false,
106
+ AllowCorsFrom: '',
107
+ CorsExposedHeaders: '',
108
+ CorsAllowCredentials: false,
109
+ CorsDebug: false,
110
+ AllowCookiesForSubdomains: false,
111
+ ExtendSessionLengthWithActivity: true,
112
+ TerminateSessionsOnPasswordChange: true,
113
+ SessionLengthWebInDays: 30,
114
+ SessionLengthWebInHours: 720,
115
+ SessionLengthMobileInDays: 30,
116
+ SessionLengthMobileInHours: 720,
117
+ SessionLengthSSOInDays: 30,
118
+ SessionLengthSSOInHours: 720,
119
+ SessionCacheInMinutes: 10,
120
+ SessionIdleTimeoutInMinutes: 43200,
121
+ WebsocketSecurePort: 443,
122
+ WebsocketPort: 80,
123
+ WebserverMode: 'gzip',
124
+ EnableGifPicker: true,
125
+ GiphySdkKey: '',
126
+ EnableCustomEmoji: true,
127
+ EnableEmojiPicker: true,
128
+ PostEditTimeLimit: -1,
129
+ TimeBetweenUserTypingUpdatesMilliseconds: 5000,
130
+ EnableCrossTeamSearch: true,
131
+ EnablePostSearch: true,
132
+ EnableFileSearch: true,
133
+ MinimumHashtagLength: 3,
134
+ EnableUserTypingMessages: true,
135
+ EnableChannelViewedMessages: true,
136
+ EnableUserStatuses: true,
137
+ ExperimentalEnableAuthenticationTransfer: true,
138
+ ClusterLogTimeoutMilliseconds: 2000,
139
+ EnableTutorial: true,
140
+ EnableOnboardingFlow: true,
141
+ ExperimentalEnableDefaultChannelLeaveJoinMessages: true,
142
+ ExperimentalGroupUnreadChannels: 'disabled',
143
+ EnableAPITeamDeletion: false,
144
+ EnableAPITriggerAdminNotifications: false,
145
+ EnableAPIUserDeletion: false,
146
+ EnableAPIPostDeletion: false,
147
+ EnableDesktopLandingPage: true,
148
+ ExperimentalEnableHardenedMode: false,
149
+ ExperimentalStrictCSRFEnforcement: false,
150
+ EnableEmailInvitations: false,
151
+ DisableBotsWhenOwnerIsDeactivated: true,
152
+ EnableBotAccountCreation: false,
153
+ EnableSVGs: false,
154
+ EnableLatex: false,
155
+ EnableInlineLatex: true,
156
+ PostPriority: true,
157
+ AllowPersistentNotifications: true,
158
+ AllowPersistentNotificationsForGuests: false,
159
+ PersistentNotificationIntervalMinutes: 5,
160
+ PersistentNotificationMaxCount: 6,
161
+ PersistentNotificationMaxRecipients: 5,
162
+ EnableAPIChannelDeletion: false,
163
+ EnableLocalMode: false,
164
+ LocalModeSocketLocation: '/var/tmp/mattermost_local.socket',
165
+ EnableAWSMetering: false,
166
+ SplitKey: '',
167
+ FeatureFlagSyncIntervalSeconds: 30,
168
+ DebugSplit: false,
169
+ ThreadAutoFollow: true,
170
+ CollapsedThreads: config.CollapsedThreads.ALWAYS_ON,
171
+ ManagedResourcePaths: '',
172
+ EnableCustomGroups: true,
173
+ AllowSyncedDrafts: true,
174
+ UniqueEmojiReactionLimitPerPost: 50,
175
+ RefreshPostStatsRunTime: '00:00',
176
+ MaximumPayloadSizeBytes: 300000,
177
+ MaximumURLLength: 2048,
178
+ ScheduledPosts: true,
179
+ },
180
+ TeamSettings: {
181
+ SiteName: 'Mattermost',
182
+ MaxUsersPerTeam: 50,
183
+ EnableJoinLeaveMessageByDefault: true,
184
+ EnableUserCreation: true,
185
+ EnableOpenServer: false,
186
+ EnableUserDeactivation: false,
187
+ RestrictCreationToDomains: '',
188
+ EnableCustomUserStatuses: true,
189
+ EnableCustomBrand: false,
190
+ CustomBrandText: '',
191
+ CustomDescriptionText: '',
192
+ RestrictDirectMessage: 'any',
193
+ EnableLastActiveTime: true,
194
+ UserStatusAwayTimeout: 300,
195
+ MaxChannelsPerTeam: 2000,
196
+ MaxNotificationsPerChannel: 1000,
197
+ EnableConfirmNotificationsToChannel: true,
198
+ TeammateNameDisplay: 'username',
199
+ ExperimentalViewArchivedChannels: true,
200
+ ExperimentalEnableAutomaticReplies: false,
201
+ LockTeammateNameDisplay: false,
202
+ ExperimentalPrimaryTeam: '',
203
+ ExperimentalDefaultChannels: [],
204
+ },
205
+ ClientRequirements: {
206
+ AndroidLatestVersion: '',
207
+ AndroidMinVersion: '',
208
+ IosLatestVersion: '',
209
+ IosMinVersion: '',
210
+ },
211
+ SqlSettings: {
212
+ DriverName: 'postgres',
213
+ DataSource: 'postgres://mmuser:mostest@localhost/mattermost_test?sslmode=disable\u0026connect_timeout=10\u0026binary_parameters=yes',
214
+ DataSourceReplicas: [],
215
+ DataSourceSearchReplicas: [],
216
+ MaxIdleConns: 20,
217
+ ConnMaxLifetimeMilliseconds: 3600000,
218
+ ConnMaxIdleTimeMilliseconds: 300000,
219
+ MaxOpenConns: 300,
220
+ Trace: false,
221
+ AtRestEncryptKey: '',
222
+ QueryTimeout: 30,
223
+ DisableDatabaseSearch: false,
224
+ MigrationsStatementTimeoutSeconds: 100000,
225
+ ReplicaLagSettings: [],
226
+ ReplicaMonitorIntervalSeconds: 5,
227
+ },
228
+ LogSettings: {
229
+ EnableConsole: true,
230
+ ConsoleLevel: 'DEBUG',
231
+ ConsoleJson: true,
232
+ EnableColor: false,
233
+ EnableFile: true,
234
+ FileLevel: 'INFO',
235
+ FileJson: true,
236
+ FileLocation: '',
237
+ EnableWebhookDebugging: true,
238
+ EnableDiagnostics: true,
239
+ VerboseDiagnostics: false,
240
+ EnableSentry: true,
241
+ AdvancedLoggingJSON: {},
242
+ MaxFieldSize: 2048,
243
+ },
244
+ ExperimentalAuditSettings: {
245
+ FileEnabled: false,
246
+ FileName: '',
247
+ FileMaxSizeMB: 100,
248
+ FileMaxAgeDays: 0,
249
+ FileMaxBackups: 0,
250
+ FileCompress: false,
251
+ FileMaxQueueSize: 1000,
252
+ AdvancedLoggingJSON: {},
253
+ },
254
+ NotificationLogSettings: {
255
+ EnableConsole: true,
256
+ ConsoleLevel: 'DEBUG',
257
+ ConsoleJson: true,
258
+ EnableColor: false,
259
+ EnableFile: true,
260
+ FileLevel: 'INFO',
261
+ FileJson: true,
262
+ FileLocation: '',
263
+ AdvancedLoggingJSON: {},
264
+ },
265
+ PasswordSettings: {
266
+ MinimumLength: 8,
267
+ Lowercase: false,
268
+ Number: false,
269
+ Uppercase: false,
270
+ Symbol: false,
271
+ EnableForgotLink: true,
272
+ },
273
+ FileSettings: {
274
+ EnableFileAttachments: true,
275
+ EnableMobileUpload: true,
276
+ EnableMobileDownload: true,
277
+ MaxFileSize: 104857600,
278
+ MaxImageResolution: 33177600,
279
+ MaxImageDecoderConcurrency: -1,
280
+ DriverName: 'local',
281
+ Directory: './data/',
282
+ EnablePublicLink: false,
283
+ ExtractContent: true,
284
+ ArchiveRecursion: false,
285
+ PublicLinkSalt: '',
286
+ InitialFont: 'nunito-bold.ttf',
287
+ AmazonS3AccessKeyId: '',
288
+ AmazonS3SecretAccessKey: '',
289
+ AmazonS3Bucket: '',
290
+ AmazonS3PathPrefix: '',
291
+ AmazonS3Region: '',
292
+ AmazonS3Endpoint: 's3.amazonaws.com',
293
+ AmazonS3SSL: true,
294
+ AmazonS3SignV2: false,
295
+ AmazonS3SSE: false,
296
+ AmazonS3Trace: false,
297
+ AmazonS3RequestTimeoutMilliseconds: 30000,
298
+ AmazonS3UploadPartSizeBytes: 5242880,
299
+ AmazonS3StorageClass: '',
300
+ DedicatedExportStore: false,
301
+ ExportDriverName: 'local',
302
+ ExportDirectory: './data/',
303
+ ExportAmazonS3AccessKeyId: '',
304
+ ExportAmazonS3SecretAccessKey: '',
305
+ ExportAmazonS3Bucket: '',
306
+ ExportAmazonS3PathPrefix: '',
307
+ ExportAmazonS3Region: '',
308
+ ExportAmazonS3Endpoint: 's3.amazonaws.com',
309
+ ExportAmazonS3SSL: true,
310
+ ExportAmazonS3SignV2: false,
311
+ ExportAmazonS3SSE: false,
312
+ ExportAmazonS3Trace: false,
313
+ ExportAmazonS3RequestTimeoutMilliseconds: 30000,
314
+ ExportAmazonS3PresignExpiresSeconds: 21600,
315
+ ExportAmazonS3UploadPartSizeBytes: 104857600,
316
+ ExportAmazonS3StorageClass: '',
317
+ },
318
+ EmailSettings: {
319
+ EnableSignUpWithEmail: true,
320
+ EnableSignInWithEmail: true,
321
+ EnableSignInWithUsername: true,
322
+ SendEmailNotifications: true,
323
+ UseChannelInEmailNotifications: false,
324
+ RequireEmailVerification: false,
325
+ FeedbackName: '',
326
+ FeedbackEmail: 'test@example.com',
327
+ ReplyToAddress: 'test@example.com',
328
+ FeedbackOrganization: '',
329
+ EnableSMTPAuth: false,
330
+ SMTPUsername: '',
331
+ SMTPPassword: '',
332
+ SMTPServer: 'localhost',
333
+ SMTPPort: '10025',
334
+ SMTPServerTimeout: 10,
335
+ ConnectionSecurity: '',
336
+ SendPushNotifications: true,
337
+ PushNotificationServer: 'https://push-test.mattermost.com',
338
+ PushNotificationServerType: 'custom',
339
+ PushNotificationServerLocation: 'us',
340
+ PushNotificationContents: 'full',
341
+ PushNotificationBuffer: 1000,
342
+ EnableEmailBatching: false,
343
+ EmailBatchingBufferSize: 256,
344
+ EmailBatchingInterval: 30,
345
+ EnablePreviewModeBanner: true,
346
+ SkipServerCertificateVerification: false,
347
+ EmailNotificationContentsType: 'full',
348
+ LoginButtonColor: '#0000',
349
+ LoginButtonBorderColor: '#2389D7',
350
+ LoginButtonTextColor: '#2389D7',
351
+ },
352
+ RateLimitSettings: {
353
+ Enable: false,
354
+ PerSec: 10,
355
+ MaxBurst: 100,
356
+ MemoryStoreSize: 10000,
357
+ VaryByRemoteAddr: true,
358
+ VaryByUser: false,
359
+ VaryByHeader: '',
360
+ },
361
+ PrivacySettings: {
362
+ ShowEmailAddress: true,
363
+ ShowFullName: true,
364
+ },
365
+ SupportSettings: {
366
+ TermsOfServiceLink: 'https://mattermost.com/pl/terms-of-use/',
367
+ PrivacyPolicyLink: 'https://mattermost.com/pl/privacy-policy/',
368
+ AboutLink: 'https://mattermost.com/pl/about-mattermost',
369
+ HelpLink: 'https://mattermost.com/pl/help/',
370
+ ReportAProblemLink: 'https://mattermost.com/pl/report-a-bug',
371
+ ForgotPasswordLink: '',
372
+ SupportEmail: '',
373
+ CustomTermsOfServiceEnabled: false,
374
+ CustomTermsOfServiceReAcceptancePeriod: 365,
375
+ EnableAskCommunityLink: true,
376
+ },
377
+ AnnouncementSettings: {
378
+ EnableBanner: false,
379
+ BannerText: '',
380
+ BannerColor: '#f2a93b',
381
+ BannerTextColor: '#333333',
382
+ AllowBannerDismissal: true,
383
+ AdminNoticesEnabled: true,
384
+ UserNoticesEnabled: true,
385
+ NoticesURL: 'https://notices.mattermost.com/',
386
+ NoticesFetchFrequency: 3600,
387
+ NoticesSkipCache: false,
388
+ },
389
+ ThemeSettings: {
390
+ EnableThemeSelection: true,
391
+ DefaultTheme: 'default',
392
+ AllowCustomThemes: true,
393
+ AllowedThemes: [],
394
+ },
395
+ GitLabSettings: {
396
+ Enable: false,
397
+ Secret: '',
398
+ Id: '',
399
+ Scope: '',
400
+ AuthEndpoint: '',
401
+ TokenEndpoint: '',
402
+ UserAPIEndpoint: '',
403
+ DiscoveryEndpoint: '',
404
+ ButtonText: '',
405
+ ButtonColor: '',
406
+ },
407
+ GoogleSettings: {
408
+ Enable: false,
409
+ Secret: '',
410
+ Id: '',
411
+ Scope: 'profile email',
412
+ AuthEndpoint: 'https://accounts.google.com/o/oauth2/v2/auth',
413
+ TokenEndpoint: 'https://www.googleapis.com/oauth2/v4/token',
414
+ UserAPIEndpoint: 'https://people.googleapis.com/v1/people/me?personFields=names,emailAddresses,nicknames,metadata',
415
+ DiscoveryEndpoint: '',
416
+ ButtonText: '',
417
+ ButtonColor: '',
418
+ },
419
+ Office365Settings: {
420
+ Enable: false,
421
+ Secret: '',
422
+ Id: '',
423
+ Scope: 'User.Read',
424
+ AuthEndpoint: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize',
425
+ TokenEndpoint: 'https://login.microsoftonline.com/common/oauth2/v2.0/token',
426
+ UserAPIEndpoint: 'https://graph.microsoft.com/v1.0/me',
427
+ DiscoveryEndpoint: '',
428
+ DirectoryId: '',
429
+ },
430
+ OpenIdSettings: {
431
+ Enable: false,
432
+ Secret: '',
433
+ Id: '',
434
+ Scope: 'profile openid email',
435
+ AuthEndpoint: '',
436
+ TokenEndpoint: '',
437
+ UserAPIEndpoint: '',
438
+ DiscoveryEndpoint: '',
439
+ ButtonText: '',
440
+ ButtonColor: '#145DBF',
441
+ },
442
+ LdapSettings: {
443
+ Enable: false,
444
+ EnableSync: false,
445
+ LdapServer: '',
446
+ LdapPort: 389,
447
+ MaximumLoginAttempts: 10,
448
+ ConnectionSecurity: '',
449
+ BaseDN: '',
450
+ BindUsername: '',
451
+ BindPassword: '',
452
+ UserFilter: '',
453
+ GroupFilter: '',
454
+ GuestFilter: '',
455
+ EnableAdminFilter: false,
456
+ AdminFilter: '',
457
+ GroupDisplayNameAttribute: '',
458
+ GroupIdAttribute: '',
459
+ FirstNameAttribute: '',
460
+ LastNameAttribute: '',
461
+ EmailAttribute: '',
462
+ UsernameAttribute: '',
463
+ NicknameAttribute: '',
464
+ IdAttribute: '',
465
+ PositionAttribute: '',
466
+ LoginIdAttribute: '',
467
+ PictureAttribute: '',
468
+ SyncIntervalMinutes: 60,
469
+ SkipCertificateVerification: false,
470
+ PublicCertificateFile: '',
471
+ PrivateKeyFile: '',
472
+ QueryTimeout: 60,
473
+ MaxPageSize: 0,
474
+ LoginFieldName: '',
475
+ LoginButtonColor: '#0000',
476
+ LoginButtonBorderColor: '#2389D7',
477
+ LoginButtonTextColor: '#2389D7',
478
+ },
479
+ ComplianceSettings: {
480
+ Enable: false,
481
+ Directory: './data/',
482
+ EnableDaily: false,
483
+ BatchSize: 30000,
484
+ },
485
+ LocalizationSettings: {
486
+ DefaultServerLocale: 'en',
487
+ DefaultClientLocale: 'en',
488
+ AvailableLocales: '',
489
+ EnableExperimentalLocales: false,
490
+ },
491
+ SamlSettings: {
492
+ Enable: false,
493
+ EnableSyncWithLdap: false,
494
+ EnableSyncWithLdapIncludeAuth: false,
495
+ IgnoreGuestsLdapSync: false,
496
+ Verify: true,
497
+ Encrypt: true,
498
+ SignRequest: false,
499
+ IdpURL: '',
500
+ IdpDescriptorURL: '',
501
+ IdpMetadataURL: '',
502
+ ServiceProviderIdentifier: '',
503
+ AssertionConsumerServiceURL: '',
504
+ SignatureAlgorithm: 'RSAwithSHA1',
505
+ CanonicalAlgorithm: 'Canonical1.0',
506
+ ScopingIDPProviderId: '',
507
+ ScopingIDPName: '',
508
+ IdpCertificateFile: '',
509
+ PublicCertificateFile: '',
510
+ PrivateKeyFile: '',
511
+ IdAttribute: '',
512
+ GuestAttribute: '',
513
+ EnableAdminAttribute: false,
514
+ AdminAttribute: '',
515
+ FirstNameAttribute: '',
516
+ LastNameAttribute: '',
517
+ EmailAttribute: '',
518
+ UsernameAttribute: '',
519
+ NicknameAttribute: '',
520
+ LocaleAttribute: '',
521
+ PositionAttribute: '',
522
+ LoginButtonText: 'SAML',
523
+ LoginButtonColor: '#34a28b',
524
+ LoginButtonBorderColor: '#2389D7',
525
+ LoginButtonTextColor: '#ffffff',
526
+ },
527
+ NativeAppSettings: {
528
+ AppCustomURLSchemes: ['mmauth://', 'mmauthbeta://'],
529
+ AppDownloadLink: 'https://mattermost.com/pl/download-apps',
530
+ AndroidAppDownloadLink: 'https://mattermost.com/pl/android-app/',
531
+ IosAppDownloadLink: 'https://mattermost.com/pl/ios-app/',
532
+ MobileExternalBrowser: false,
533
+ },
534
+ CacheSettings: {
535
+ CacheType: 'lru',
536
+ RedisAddress: '',
537
+ RedisPassword: '',
538
+ RedisDB: -1,
539
+ DisableClientCache: false,
540
+ },
541
+ ClusterSettings: {
542
+ Enable: false,
543
+ ClusterName: '',
544
+ OverrideHostname: '',
545
+ NetworkInterface: '',
546
+ BindAddress: '',
547
+ AdvertiseAddress: '',
548
+ UseIPAddress: true,
549
+ EnableGossipCompression: true,
550
+ EnableExperimentalGossipEncryption: false,
551
+ ReadOnlyConfig: true,
552
+ GossipPort: 8074,
553
+ },
554
+ MetricsSettings: {
555
+ Enable: false,
556
+ BlockProfileRate: 0,
557
+ ListenAddress: ':8067',
558
+ EnableClientMetrics: true,
559
+ EnableNotificationMetrics: true,
560
+ },
561
+ ExperimentalSettings: {
562
+ ClientSideCertEnable: false,
563
+ ClientSideCertCheck: 'secondary',
564
+ LinkMetadataTimeoutMilliseconds: 5000,
565
+ RestrictSystemAdmin: false,
566
+ EnableSharedChannels: false,
567
+ EnableRemoteClusterService: false,
568
+ DisableAppBar: false,
569
+ DisableRefetchingOnBrowserFocus: false,
570
+ DelayChannelAutocomplete: false,
571
+ DisableWakeUpReconnectHandler: false,
572
+ UsersStatusAndProfileFetchingPollIntervalMilliseconds: 3000,
573
+ YoutubeReferrerPolicy: false,
574
+ },
575
+ AnalyticsSettings: {
576
+ MaxUsersForStatistics: 2500,
577
+ },
578
+ ElasticsearchSettings: {
579
+ ConnectionURL: 'http://localhost:9200',
580
+ Backend: 'elasticsearch',
581
+ Username: 'elastic',
582
+ Password: 'changeme',
583
+ EnableIndexing: false,
584
+ EnableSearching: false,
585
+ EnableAutocomplete: false,
586
+ Sniff: true,
587
+ PostIndexReplicas: 1,
588
+ PostIndexShards: 1,
589
+ ChannelIndexReplicas: 1,
590
+ ChannelIndexShards: 1,
591
+ UserIndexReplicas: 1,
592
+ UserIndexShards: 1,
593
+ AggregatePostsAfterDays: 365,
594
+ PostsAggregatorJobStartTime: '03:00',
595
+ IndexPrefix: '',
596
+ LiveIndexingBatchSize: 10,
597
+ BatchSize: 10000,
598
+ RequestTimeoutSeconds: 30,
599
+ SkipTLSVerification: false,
600
+ CA: '',
601
+ ClientCert: '',
602
+ ClientKey: '',
603
+ Trace: '',
604
+ IgnoredPurgeIndexes: '',
605
+ },
606
+ BleveSettings: {
607
+ IndexDir: '',
608
+ EnableIndexing: false,
609
+ EnableSearching: false,
610
+ EnableAutocomplete: false,
611
+ BatchSize: 10000,
612
+ },
613
+ DataRetentionSettings: {
614
+ EnableMessageDeletion: false,
615
+ EnableFileDeletion: false,
616
+ EnableBoardsDeletion: false,
617
+ MessageRetentionDays: 365,
618
+ MessageRetentionHours: 0,
619
+ FileRetentionDays: 365,
620
+ FileRetentionHours: 0,
621
+ BoardsRetentionDays: 365,
622
+ DeletionJobStartTime: '02:00',
623
+ BatchSize: 3000,
624
+ TimeBetweenBatchesMilliseconds: 100,
625
+ RetentionIdsBatchSize: 100,
626
+ },
627
+ MessageExportSettings: {
628
+ EnableExport: false,
629
+ ExportFormat: 'actiance',
630
+ DailyRunTime: '01:00',
631
+ ExportFromTimestamp: 0,
632
+ BatchSize: 10000,
633
+ DownloadExportResults: false,
634
+ ChannelBatchSize: 100,
635
+ ChannelHistoryBatchSize: 10,
636
+ GlobalRelaySettings: {
637
+ CustomerType: 'A9',
638
+ SMTPUsername: '',
639
+ SMTPPassword: '',
640
+ EmailAddress: '',
641
+ SMTPServerTimeout: 1800,
642
+ CustomSMTPServerName: '',
643
+ CustomSMTPPort: '25',
644
+ },
645
+ },
646
+ JobSettings: {
647
+ RunJobs: true,
648
+ RunScheduler: true,
649
+ CleanupJobsThresholdDays: -1,
650
+ CleanupConfigThresholdDays: -1,
651
+ },
652
+ PluginSettings: {
653
+ Enable: true,
654
+ EnableUploads: false,
655
+ AllowInsecureDownloadURL: false,
656
+ EnableHealthCheck: true,
657
+ Directory: './plugins',
658
+ ClientDirectory: './client/plugins',
659
+ Plugins: {},
660
+ PluginStates: {
661
+ 'com.mattermost.calls': {
662
+ Enable: true,
663
+ },
664
+ 'com.mattermost.nps': {
665
+ Enable: true,
666
+ },
667
+ 'mattermost-ai': {
668
+ Enable: true,
669
+ },
670
+ playbooks: {
671
+ Enable: true,
672
+ },
673
+ },
674
+ EnableMarketplace: true,
675
+ EnableRemoteMarketplace: true,
676
+ AutomaticPrepackagedPlugins: true,
677
+ RequirePluginSignature: false,
678
+ MarketplaceURL: 'https://api.integrations.mattermost.com',
679
+ SignaturePublicKeyFiles: [],
680
+ ChimeraOAuthProxyURL: '',
681
+ },
682
+ DisplaySettings: {
683
+ CustomURLSchemes: [],
684
+ MaxMarkdownNodes: 0,
685
+ },
686
+ GuestAccountsSettings: {
687
+ Enable: false,
688
+ HideTags: false,
689
+ AllowEmailAccounts: true,
690
+ EnforceMultifactorAuthentication: false,
691
+ RestrictCreationToDomains: '',
692
+ },
693
+ ImageProxySettings: {
694
+ Enable: false,
695
+ ImageProxyType: 'local',
696
+ RemoteImageProxyURL: '',
697
+ RemoteImageProxyOptions: '',
698
+ },
699
+ CloudSettings: {
700
+ CWSURL: 'https://customers.mattermost.com',
701
+ CWSAPIURL: 'https://portal.internal.prod.cloud.mattermost.com',
702
+ CWSMock: false,
703
+ Disable: false,
704
+ },
705
+ FeatureFlags: {
706
+ TestFeature: 'off',
707
+ TestBoolFeature: false,
708
+ EnableRemoteClusterService: false,
709
+ EnableSharedChannelsDMs: false,
710
+ AppsEnabled: false,
711
+ PermalinkPreviews: false,
712
+ NormalizeLdapDNs: false,
713
+ WysiwygEditor: false,
714
+ OnboardingTourTips: true,
715
+ DeprecateCloudFree: false,
716
+ EnableExportDirectDownload: false,
717
+ MoveThreadsEnabled: false,
718
+ StreamlinedMarketplace: true,
719
+ CloudIPFiltering: false,
720
+ ConsumePostHook: false,
721
+ CloudAnnualRenewals: false,
722
+ CloudDedicatedExportUI: false,
723
+ ChannelBookmarks: true,
724
+ WebSocketEventScope: true,
725
+ NotificationMonitoring: true,
726
+ ExperimentalAuditSettingsSystemConsoleUI: false,
727
+ CustomProfileAttributes: false,
728
+ },
729
+ ImportSettings: {
730
+ Directory: './import',
731
+ RetentionDays: 30,
732
+ },
733
+ ExportSettings: {
734
+ Directory: './export',
735
+ RetentionDays: 30,
736
+ },
737
+ WranglerSettings: {
738
+ PermittedWranglerRoles: [],
739
+ AllowedEmailDomain: [],
740
+ MoveThreadMaxCount: 100,
741
+ MoveThreadToAnotherTeamEnable: false,
742
+ MoveThreadFromPrivateChannelEnable: false,
743
+ MoveThreadFromDirectMessageChannelEnable: false,
744
+ MoveThreadFromGroupMessageChannelEnable: false,
745
+ },
746
+ ConnectedWorkspacesSettings: {
747
+ EnableSharedChannels: false,
748
+ EnableRemoteClusterService: false,
749
+ DisableSharedChannelsStatusSync: false,
750
+ MaxPostsPerSync: 50,
751
+ },
752
+ };
753
+
754
+ exports.getOnPremServerConfig = getOnPremServerConfig;
755
+ //# sourceMappingURL=default_config.js.map