Fix database config because Mattermost Preview migrated to Postgres
This commit is contained in:
parent
c65ae73d1d
commit
52682cae68
196
Demo/config.json
196
Demo/config.json
|
@ -14,23 +14,22 @@
|
|||
"UseLetsEncrypt": false,
|
||||
"LetsEncryptCertificateCacheFile": "./config/letsencrypt.cache",
|
||||
"Forward80To443": false,
|
||||
"TrustedProxyIPHeader": [
|
||||
"X-Forwarded-For",
|
||||
"X-Real-IP"
|
||||
],
|
||||
"TrustedProxyIPHeader": [],
|
||||
"ReadTimeout": 300,
|
||||
"WriteTimeout": 300,
|
||||
"IdleTimeout": 60,
|
||||
"MaximumLoginAttempts": 10,
|
||||
"GoroutineHealthThreshold": -1,
|
||||
"EnableOAuthServiceProvider": false,
|
||||
"EnableOAuthServiceProvider": true,
|
||||
"EnableIncomingWebhooks": true,
|
||||
"EnableOutgoingWebhooks": true,
|
||||
"EnableOutgoingOAuthConnections": false,
|
||||
"EnableCommands": true,
|
||||
"OutgoingIntegrationRequestsTimeout": 30,
|
||||
"EnablePostUsernameOverride": false,
|
||||
"EnablePostIconOverride": false,
|
||||
"GoogleDeveloperKey": "",
|
||||
"EnableLinkPreviews": false,
|
||||
"EnableLinkPreviews": true,
|
||||
"EnablePermalinkPreviews": true,
|
||||
"RestrictLinkPreviews": "",
|
||||
"EnableTesting": false,
|
||||
|
@ -50,18 +49,20 @@
|
|||
"CorsDebug": false,
|
||||
"AllowCookiesForSubdomains": false,
|
||||
"ExtendSessionLengthWithActivity": false,
|
||||
"SessionLengthWebInDays": 30,
|
||||
"SessionLengthMobileInDays": 30,
|
||||
"SessionLengthWebInDays": 180,
|
||||
"SessionLengthWebInHours": 4320,
|
||||
"SessionLengthMobileInDays": 180,
|
||||
"SessionLengthMobileInHours": 4320,
|
||||
"SessionLengthSSOInDays": 30,
|
||||
"SessionLengthSSOInHours": 720,
|
||||
"SessionCacheInMinutes": 10,
|
||||
"SessionIdleTimeoutInMinutes": 0,
|
||||
"SessionIdleTimeoutInMinutes": 43200,
|
||||
"WebsocketSecurePort": 443,
|
||||
"WebsocketPort": 80,
|
||||
"WebserverMode": "gzip",
|
||||
"EnableGifPicker": false,
|
||||
"GfycatAPIKey": "2_KtH_W5",
|
||||
"GfycatAPISecret": "3wLVZPiswc3DnaiaFoLkDvB4X0IV6CpMkj4tf2inJRsBY6-FnkT08zGmppWFgeof",
|
||||
"EnableCustomEmoji": false,
|
||||
"EnableGifPicker": true,
|
||||
"GiphySdkKey": "",
|
||||
"EnableCustomEmoji": true,
|
||||
"EnableEmojiPicker": true,
|
||||
"PostEditTimeLimit": -1,
|
||||
"TimeBetweenUserTypingUpdatesMilliseconds": 5000,
|
||||
|
@ -79,6 +80,7 @@
|
|||
"ExperimentalEnableDefaultChannelLeaveJoinMessages": true,
|
||||
"ExperimentalGroupUnreadChannels": "disabled",
|
||||
"EnableAPITeamDeletion": false,
|
||||
"EnableAPITriggerAdminNotifications": false,
|
||||
"EnableAPIUserDeletion": false,
|
||||
"ExperimentalEnableHardenedMode": false,
|
||||
"ExperimentalStrictCSRFEnforcement": false,
|
||||
|
@ -88,6 +90,12 @@
|
|||
"EnableSVGs": true,
|
||||
"EnableLatex": true,
|
||||
"EnableInlineLatex": true,
|
||||
"PostPriority": true,
|
||||
"AllowPersistentNotifications": true,
|
||||
"AllowPersistentNotificationsForGuests": false,
|
||||
"PersistentNotificationIntervalMinutes": 5,
|
||||
"PersistentNotificationMaxCount": 6,
|
||||
"PersistentNotificationMaxRecipients": 5,
|
||||
"EnableAPIChannelDeletion": false,
|
||||
"EnableLocalMode": false,
|
||||
"LocalModeSocketLocation": "/var/tmp/mattermost_local.socket",
|
||||
|
@ -96,13 +104,19 @@
|
|||
"FeatureFlagSyncIntervalSeconds": 30,
|
||||
"DebugSplit": false,
|
||||
"ThreadAutoFollow": true,
|
||||
"CollapsedThreads": "disabled",
|
||||
"CollapsedThreads": "always_on",
|
||||
"ManagedResourcePaths": "",
|
||||
"EnableCustomGroups": true
|
||||
"EnableCustomGroups": true,
|
||||
"SelfHostedPurchase": true,
|
||||
"AllowSyncedDrafts": true,
|
||||
"UniqueEmojiReactionLimitPerPost": 50,
|
||||
"RefreshPostStatsRunTime": "00:00",
|
||||
"MaximumPayloadSizeBytes": 100000
|
||||
},
|
||||
"TeamSettings": {
|
||||
"SiteName": "Mattermost",
|
||||
"MaxUsersPerTeam": 50,
|
||||
"EnableJoinLeaveMessageByDefault": true,
|
||||
"EnableUserCreation": true,
|
||||
"EnableOpenServer": false,
|
||||
"EnableUserDeactivation": false,
|
||||
|
@ -112,12 +126,13 @@
|
|||
"CustomBrandText": "",
|
||||
"CustomDescriptionText": "",
|
||||
"RestrictDirectMessage": "any",
|
||||
"EnableLastActiveTime": true,
|
||||
"UserStatusAwayTimeout": 300,
|
||||
"MaxChannelsPerTeam": 2000,
|
||||
"MaxNotificationsPerChannel": 1000000,
|
||||
"MaxNotificationsPerChannel": 1000,
|
||||
"EnableConfirmNotificationsToChannel": true,
|
||||
"TeammateNameDisplay": "username",
|
||||
"ExperimentalViewArchivedChannels": false,
|
||||
"ExperimentalViewArchivedChannels": true,
|
||||
"ExperimentalEnableAutomaticReplies": false,
|
||||
"LockTeammateNameDisplay": false,
|
||||
"ExperimentalPrimaryTeam": "",
|
||||
|
@ -130,8 +145,8 @@
|
|||
"IosMinVersion": ""
|
||||
},
|
||||
"SqlSettings": {
|
||||
"DriverName": "mysql",
|
||||
"DataSource": "mmuser:mostest@tcp(localhost:3306)/mattermost_test?charset=utf8mb4,utf8",
|
||||
"DriverName": "postgres",
|
||||
"DataSource": "postgres://mmuser:mostest@localhost/mattermost_test?sslmode=disable\u0026connect_timeout=10\u0026binary_parameters=yes",
|
||||
"DataSourceReplicas": [],
|
||||
"DataSourceSearchReplicas": [],
|
||||
"MaxIdleConns": 20,
|
||||
|
@ -139,11 +154,12 @@
|
|||
"ConnMaxIdleTimeMilliseconds": 300000,
|
||||
"MaxOpenConns": 300,
|
||||
"Trace": false,
|
||||
"AtRestEncryptKey": "95ps7omhzmhusdfqh5bki5ye4xfd4hgw",
|
||||
"AtRestEncryptKey": "73i1z9pkuxx93ad4jcey333ta5o7gid8",
|
||||
"QueryTimeout": 30,
|
||||
"DisableDatabaseSearch": false,
|
||||
"MigrationsStatementTimeoutSeconds": 100000,
|
||||
"ReplicaLagSettings": []
|
||||
"ReplicaLagSettings": [],
|
||||
"ReplicaMonitorIntervalSeconds": 5
|
||||
},
|
||||
"LogSettings": {
|
||||
"EnableConsole": true,
|
||||
|
@ -156,8 +172,11 @@
|
|||
"FileLocation": "",
|
||||
"EnableWebhookDebugging": true,
|
||||
"EnableDiagnostics": true,
|
||||
"VerboseDiagnostics": false,
|
||||
"EnableSentry": true,
|
||||
"AdvancedLoggingConfig": ""
|
||||
"AdvancedLoggingJSON": {},
|
||||
"AdvancedLoggingConfig": "",
|
||||
"MaxFieldSize": 2048
|
||||
},
|
||||
"ExperimentalAuditSettings": {
|
||||
"FileEnabled": false,
|
||||
|
@ -167,6 +186,7 @@
|
|||
"FileMaxBackups": 0,
|
||||
"FileCompress": false,
|
||||
"FileMaxQueueSize": 1000,
|
||||
"AdvancedLoggingJSON": {},
|
||||
"AdvancedLoggingConfig": ""
|
||||
},
|
||||
"NotificationLogSettings": {
|
||||
|
@ -178,27 +198,30 @@
|
|||
"FileLevel": "INFO",
|
||||
"FileJson": true,
|
||||
"FileLocation": "",
|
||||
"AdvancedLoggingJSON": {},
|
||||
"AdvancedLoggingConfig": ""
|
||||
},
|
||||
"PasswordSettings": {
|
||||
"MinimumLength": 5,
|
||||
"MinimumLength": 8,
|
||||
"Lowercase": false,
|
||||
"Number": false,
|
||||
"Uppercase": false,
|
||||
"Symbol": false
|
||||
"Symbol": false,
|
||||
"EnableForgotLink": true
|
||||
},
|
||||
"FileSettings": {
|
||||
"EnableFileAttachments": true,
|
||||
"EnableMobileUpload": true,
|
||||
"EnableMobileDownload": true,
|
||||
"MaxFileSize": 52428800,
|
||||
"MaxFileSize": 104857600,
|
||||
"MaxImageResolution": 33177600,
|
||||
"MaxImageDecoderConcurrency": -1,
|
||||
"DriverName": "local",
|
||||
"Directory": "/mm/mattermost-data/",
|
||||
"EnablePublicLink": false,
|
||||
"ExtractContent": true,
|
||||
"ArchiveRecursion": false,
|
||||
"PublicLinkSalt": "g3w9kzz9ewg1bskanhruqorygm81rp7j",
|
||||
"PublicLinkSalt": "6xzurkkqaebfptiaw49ubjeyq5megscz",
|
||||
"InitialFont": "nunito-bold.ttf",
|
||||
"AmazonS3AccessKeyId": "",
|
||||
"AmazonS3SecretAccessKey": "",
|
||||
|
@ -209,7 +232,23 @@
|
|||
"AmazonS3SSL": true,
|
||||
"AmazonS3SignV2": false,
|
||||
"AmazonS3SSE": false,
|
||||
"AmazonS3Trace": false
|
||||
"AmazonS3Trace": false,
|
||||
"AmazonS3RequestTimeoutMilliseconds": 30000,
|
||||
"DedicatedExportStore": false,
|
||||
"ExportDriverName": "local",
|
||||
"ExportDirectory": "./data/",
|
||||
"ExportAmazonS3AccessKeyId": "",
|
||||
"ExportAmazonS3SecretAccessKey": "",
|
||||
"ExportAmazonS3Bucket": "",
|
||||
"ExportAmazonS3PathPrefix": "",
|
||||
"ExportAmazonS3Region": "",
|
||||
"ExportAmazonS3Endpoint": "s3.amazonaws.com",
|
||||
"ExportAmazonS3SSL": true,
|
||||
"ExportAmazonS3SignV2": false,
|
||||
"ExportAmazonS3SSE": false,
|
||||
"ExportAmazonS3Trace": false,
|
||||
"ExportAmazonS3RequestTimeoutMilliseconds": 30000,
|
||||
"ExportAmazonS3PresignExpiresSeconds": 21600
|
||||
},
|
||||
"EmailSettings": {
|
||||
"EnableSignUpWithEmail": false,
|
||||
|
@ -239,9 +278,9 @@
|
|||
"EnablePreviewModeBanner": true,
|
||||
"SkipServerCertificateVerification": false,
|
||||
"EmailNotificationContentsType": "full",
|
||||
"LoginButtonColor": "",
|
||||
"LoginButtonBorderColor": "",
|
||||
"LoginButtonTextColor": ""
|
||||
"LoginButtonColor": "#0000",
|
||||
"LoginButtonBorderColor": "#2389D7",
|
||||
"LoginButtonTextColor": "#2389D7"
|
||||
},
|
||||
"RateLimitSettings": {
|
||||
"Enable": false,
|
||||
|
@ -257,12 +296,13 @@
|
|||
"ShowFullName": true
|
||||
},
|
||||
"SupportSettings": {
|
||||
"TermsOfServiceLink": "https://about.mattermost.com/default-terms/",
|
||||
"PrivacyPolicyLink": "https://about.mattermost.com/default-privacy-policy/",
|
||||
"AboutLink": "https://about.mattermost.com/default-about/",
|
||||
"HelpLink": "https://about.mattermost.com/default-help/",
|
||||
"ReportAProblemLink": "https://about.mattermost.com/default-report-a-problem/",
|
||||
"SupportEmail": "feedback@mattermost.com",
|
||||
"TermsOfServiceLink": "https://mattermost.com/pl/terms-of-use/",
|
||||
"PrivacyPolicyLink": "https://mattermost.com/pl/privacy-policy/",
|
||||
"AboutLink": "https://mattermost.com/pl/about-mattermost",
|
||||
"HelpLink": "https://mattermost.com/pl/help/",
|
||||
"ReportAProblemLink": "https://mattermost.com/pl/report-a-bug",
|
||||
"ForgotPasswordLink": "",
|
||||
"SupportEmail": "",
|
||||
"CustomTermsOfServiceEnabled": false,
|
||||
"CustomTermsOfServiceReAcceptancePeriod": 365,
|
||||
"EnableAskCommunityLink": true
|
||||
|
@ -304,7 +344,7 @@
|
|||
"Scope": "profile email",
|
||||
"AuthEndpoint": "https://accounts.google.com/o/oauth2/v2/auth",
|
||||
"TokenEndpoint": "https://www.googleapis.com/oauth2/v4/token",
|
||||
"UserAPIEndpoint": "https://www.googleapis.com/plus/v1/people/me",
|
||||
"UserAPIEndpoint": "https://people.googleapis.com/v1/people/me?personFields=names,emailAddresses,nicknames,metadata",
|
||||
"DiscoveryEndpoint": "",
|
||||
"ButtonText": "",
|
||||
"ButtonColor": ""
|
||||
|
@ -364,9 +404,9 @@
|
|||
"QueryTimeout": 60,
|
||||
"MaxPageSize": 0,
|
||||
"LoginFieldName": "",
|
||||
"LoginButtonColor": "",
|
||||
"LoginButtonBorderColor": "",
|
||||
"LoginButtonTextColor": "",
|
||||
"LoginButtonColor": "#0000",
|
||||
"LoginButtonBorderColor": "#2389D7",
|
||||
"LoginButtonTextColor": "#2389D7",
|
||||
"Trace": false
|
||||
},
|
||||
"ComplianceSettings": {
|
||||
|
@ -411,19 +451,19 @@
|
|||
"NicknameAttribute": "",
|
||||
"LocaleAttribute": "",
|
||||
"PositionAttribute": "",
|
||||
"LoginButtonText": "With SAML",
|
||||
"LoginButtonColor": "",
|
||||
"LoginButtonBorderColor": "",
|
||||
"LoginButtonTextColor": ""
|
||||
"LoginButtonText": "SAML",
|
||||
"LoginButtonColor": "#34a28b",
|
||||
"LoginButtonBorderColor": "#2389D7",
|
||||
"LoginButtonTextColor": "#ffffff"
|
||||
},
|
||||
"NativeAppSettings": {
|
||||
"AppCustomURLSchemes": [
|
||||
"mmauth://",
|
||||
"mmauthbeta://"
|
||||
],
|
||||
"AppDownloadLink": "https://about.mattermost.com/downloads/",
|
||||
"AndroidAppDownloadLink": "https://about.mattermost.com/mattermost-android-app/",
|
||||
"IosAppDownloadLink": "https://about.mattermost.com/mattermost-ios-app/"
|
||||
"AppDownloadLink": "https://mattermost.com/pl/download-apps",
|
||||
"AndroidAppDownloadLink": "https://mattermost.com/pl/android-app/",
|
||||
"IosAppDownloadLink": "https://mattermost.com/pl/ios-app/"
|
||||
},
|
||||
"ClusterSettings": {
|
||||
"Enable": false,
|
||||
|
@ -450,14 +490,14 @@
|
|||
"ExperimentalSettings": {
|
||||
"ClientSideCertEnable": false,
|
||||
"ClientSideCertCheck": "secondary",
|
||||
"EnableClickToReply": false,
|
||||
"LinkMetadataTimeoutMilliseconds": 5000,
|
||||
"RestrictSystemAdmin": false,
|
||||
"UseNewSAMLLibrary": false,
|
||||
"CloudUserLimit": 0,
|
||||
"CloudBilling": false,
|
||||
"EnableSharedChannels": false,
|
||||
"EnableRemoteClusterService": false
|
||||
"EnableRemoteClusterService": false,
|
||||
"DisableAppBar": false,
|
||||
"DisableRefetchingOnBrowserFocus": false,
|
||||
"DelayChannelAutocomplete": false
|
||||
},
|
||||
"AnalyticsSettings": {
|
||||
"MaxUsersForStatistics": 2500
|
||||
|
@ -480,27 +520,35 @@
|
|||
"PostsAggregatorJobStartTime": "03:00",
|
||||
"IndexPrefix": "",
|
||||
"LiveIndexingBatchSize": 1,
|
||||
"BulkIndexingTimeWindowSeconds": 3600,
|
||||
"BatchSize": 10000,
|
||||
"RequestTimeoutSeconds": 30,
|
||||
"SkipTLSVerification": false,
|
||||
"Trace": ""
|
||||
"CA": "",
|
||||
"ClientCert": "",
|
||||
"ClientKey": "",
|
||||
"Trace": "",
|
||||
"IgnoredPurgeIndexes": ""
|
||||
},
|
||||
"BleveSettings": {
|
||||
"IndexDir": "",
|
||||
"EnableIndexing": false,
|
||||
"EnableSearching": false,
|
||||
"EnableAutocomplete": false,
|
||||
"BulkIndexingTimeWindowSeconds": 3600
|
||||
"BatchSize": 10000
|
||||
},
|
||||
"DataRetentionSettings": {
|
||||
"EnableMessageDeletion": false,
|
||||
"EnableFileDeletion": false,
|
||||
"EnableBoardsDeletion": false,
|
||||
"MessageRetentionDays": 365,
|
||||
"MessageRetentionHours": 0,
|
||||
"FileRetentionDays": 365,
|
||||
"FileRetentionHours": 0,
|
||||
"BoardsRetentionDays": 365,
|
||||
"DeletionJobStartTime": "02:00",
|
||||
"BatchSize": 3000
|
||||
"BatchSize": 3000,
|
||||
"TimeBetweenBatchesMilliseconds": 100,
|
||||
"RetentionIdsBatchSize": 100
|
||||
},
|
||||
"MessageExportSettings": {
|
||||
"EnableExport": false,
|
||||
|
@ -514,14 +562,18 @@
|
|||
"SMTPUsername": "",
|
||||
"SMTPPassword": "",
|
||||
"EmailAddress": "",
|
||||
"SMTPServerTimeout": 1800
|
||||
"SMTPServerTimeout": 1800,
|
||||
"CustomSMTPServerName": "",
|
||||
"CustomSMTPPort": "25"
|
||||
}
|
||||
},
|
||||
"JobSettings": {
|
||||
"RunJobs": true,
|
||||
"RunScheduler": true,
|
||||
"CleanupJobsThresholdDays": -1
|
||||
"CleanupJobsThresholdDays": -1,
|
||||
"CleanupConfigThresholdDays": -1
|
||||
},
|
||||
"ProductSettings": {},
|
||||
"PluginSettings": {
|
||||
"Enable": true,
|
||||
"EnableUploads": true,
|
||||
|
@ -530,23 +582,17 @@
|
|||
"Directory": "./plugins",
|
||||
"ClientDirectory": "./client/plugins",
|
||||
"Plugins": {
|
||||
"com.mattermost.plugin-incident-management": {
|
||||
"BotUserID": "gawh538krt8w7mj1irqb9k65to"
|
||||
},
|
||||
"playbooks": {
|
||||
"BotUserID": "fdmzdn3m4bgu8bhd48etu6dqjr"
|
||||
"BotUserID": "xn8i86tz47rtjp8yxs4cdofh1a"
|
||||
}
|
||||
},
|
||||
"PluginStates": {
|
||||
"com.mattermost.calls": {
|
||||
"Enable": true
|
||||
},
|
||||
"com.mattermost.nps": {
|
||||
"Enable": true
|
||||
},
|
||||
"com.mattermost.plugin-incident-management": {
|
||||
"Enable": true
|
||||
},
|
||||
"focalboard": {
|
||||
"Enable": true
|
||||
},
|
||||
"playbooks": {
|
||||
"Enable": true
|
||||
}
|
||||
|
@ -561,10 +607,11 @@
|
|||
},
|
||||
"DisplaySettings": {
|
||||
"CustomURLSchemes": [],
|
||||
"ExperimentalTimezone": false
|
||||
"MaxMarkdownNodes": 0
|
||||
},
|
||||
"GuestAccountsSettings": {
|
||||
"Enable": false,
|
||||
"HideTags": false,
|
||||
"AllowEmailAccounts": true,
|
||||
"EnforceMultifactorAuthentication": false,
|
||||
"RestrictCreationToDomains": ""
|
||||
|
@ -577,7 +624,9 @@
|
|||
},
|
||||
"CloudSettings": {
|
||||
"CWSURL": "https://customers.mattermost.com",
|
||||
"CWSAPIURL": "https://portal.internal.prod.cloud.mattermost.com"
|
||||
"CWSAPIURL": "https://portal.internal.prod.cloud.mattermost.com",
|
||||
"CWSMock": false,
|
||||
"Disable": false
|
||||
},
|
||||
"ImportSettings": {
|
||||
"Directory": "./import",
|
||||
|
@ -586,5 +635,14 @@
|
|||
"ExportSettings": {
|
||||
"Directory": "./export",
|
||||
"RetentionDays": 30
|
||||
},
|
||||
"WranglerSettings": {
|
||||
"PermittedWranglerRoles": [],
|
||||
"AllowedEmailDomain": [],
|
||||
"MoveThreadMaxCount": 100,
|
||||
"MoveThreadToAnotherTeamEnable": false,
|
||||
"MoveThreadFromPrivateChannelEnable": false,
|
||||
"MoveThreadFromDirectMessageChannelEnable": false,
|
||||
"MoveThreadFromGroupMessageChannelEnable": false
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue