$OpenBSD: patch-config_config_json,v 1.14 2021/03/23 10:57:42 pvk Exp $

Index: config/config.json
--- config/config.json.orig
+++ config/config.json
@@ -12,7 +12,7 @@
     "TLSStrictTransportMaxAge": 63072000,
     "TLSOverwriteCiphers": [],
     "UseLetsEncrypt": false,
-    "LetsEncryptCertificateCacheFile": "./config/letsencrypt.cache",
+    "LetsEncryptCertificateCacheFile": "${LOCALSTATEDIR}/mattermost/letsencrypt.cache",
     "Forward80To443": false,
     "TrustedProxyIPHeader": [],
     "ReadTimeout": 300,
@@ -90,7 +90,7 @@
     "EnableLatex": false,
     "EnableAPIChannelDeletion": false,
     "EnableLocalMode": false,
-    "LocalModeSocketLocation": "/var/tmp/mattermost_local.socket",
+    "LocalModeSocketLocation": "${LOCALSTATEDIR}/mattermost/mattermost_local.socket",
     "EnableAWSMetering": false,
     "SplitKey": "",
     "FeatureFlagSyncIntervalSeconds": 30,
@@ -158,13 +158,13 @@
     "DisableDatabaseSearch": false
   },
   "LogSettings": {
-    "EnableConsole": true,
+    "EnableConsole": false,
     "ConsoleLevel": "INFO",
     "ConsoleJson": true,
     "EnableFile": true,
     "FileLevel": "INFO",
     "FileJson": true,
-    "FileLocation": "",
+    "FileLocation": "${LOCALSTATEDIR}/log/mattermost",
     "EnableWebhookDebugging": true,
     "EnableDiagnostics": true,
     "EnableSentry": true,
@@ -181,13 +181,13 @@
     "AdvancedLoggingConfig": ""
   },
   "NotificationLogSettings": {
-    "EnableConsole": true,
+    "EnableConsole": false,
     "ConsoleLevel": "INFO",
     "ConsoleJson": true,
     "EnableFile": true,
     "FileLevel": "INFO",
     "FileJson": true,
-    "FileLocation": "",
+    "FileLocation": "${LOCALSTATEDIR}/log/mattermost",
     "AdvancedLoggingConfig": ""
   },
   "PasswordSettings": {
@@ -203,7 +203,7 @@
     "EnableMobileDownload": true,
     "MaxFileSize": 104857600,
     "DriverName": "local",
-    "Directory": "./data/",
+    "Directory": "${LOCALSTATEDIR}/mattermost/data/",
     "EnablePublicLink": false,
     "PublicLinkSalt": "",
     "InitialFont": "nunito-bold.ttf",
@@ -232,11 +232,11 @@
     "EnableSMTPAuth": false,
     "SMTPUsername": "",
     "SMTPPassword": "",
-    "SMTPServer": "",
-    "SMTPPort": "10025",
+    "SMTPServer": "localhost",
+    "SMTPPort": "25",
     "SMTPServerTimeout": 10,
     "ConnectionSecurity": "",
-    "SendPushNotifications": true,
+    "SendPushNotifications": false,
     "PushNotificationServer": "https://push-test.mattermost.com",
     "PushNotificationContents": "full",
     "PushNotificationBuffer": 1000,
@@ -272,7 +272,7 @@
     "SupportEmail": "feedback@mattermost.com",
     "CustomTermsOfServiceEnabled": false,
     "CustomTermsOfServiceReAcceptancePeriod": 365,
-    "EnableAskCommunityLink": true
+    "EnableAskCommunityLink": false
   },
   "AnnouncementSettings": {
     "EnableBanner": false,
@@ -378,7 +378,7 @@
   },
   "ComplianceSettings": {
     "Enable": false,
-    "Directory": "./data/",
+    "Directory": "${LOCALSTATEDIR}/mattermost/data/",
     "EnableDaily": false
   },
   "LocalizationSettings": {
@@ -529,8 +529,8 @@
     "EnableUploads": false,
     "AllowInsecureDownloadUrl": false,
     "EnableHealthCheck": true,
-    "Directory": "./plugins",
-    "ClientDirectory": "./client/plugins",
+    "Directory": "${LOCALSTATEDIR}/mattermost/plugins",
+    "ClientDirectory": "${LOCALSTATEDIR}/mattermost/client/plugins",
     "Plugins": {},
     "PluginStates": {
       "com.mattermost.nps": {
@@ -572,11 +572,11 @@
     "PluginIncidentManagement": "1.4.0"
   },
   "ImportSettings": {
-    "Directory": "./import",
+    "Directory": "${LOCALSTATEDIR}/mattermost/import",
     "RetentionDays": 30
   },
   "ExportSettings": {
-    "Directory": "./export",
+    "Directory": "${LOCALSTATEDIR}/mattermost/export",
     "RetentionDays": 30
   }
-}
\ No newline at end of file
+}
