Fix database config because Mattermost Preview migrated to Postgres

This commit is contained in:
Denis CLAVIER 2024-03-24 15:07:45 +04:00
parent c65ae73d1d
commit 52682cae68
1 changed files with 127 additions and 69 deletions

View File

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