$OpenBSD: patch-config_config_json,v 1.20 2021/10/14 12:57:56 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,
@@ -84,7 +84,7 @@
     "EnableLatex": false,
     "EnableAPIChannelDeletion": false,
     "EnableLocalMode": false,
-    "LocalModeSocketLocation": "/var/tmp/mattermost_local.socket",
+    "LocalModeSocketLocation": "${LOCALSTATEDIR}/mattermost/mattermost_local.socket",
     "EnableAWSMetering": false,
     "SplitKey": "",
     "FeatureFlagSyncIntervalSeconds": 30,
@@ -141,14 +141,14 @@
     "ReplicaLagSettings": []
   },
   "LogSettings": {
-    "EnableConsole": true,
+    "EnableConsole": false,
     "ConsoleLevel": "INFO",
     "ConsoleJson": true,
     "EnableColor": false,
     "EnableFile": true,
     "FileLevel": "INFO",
     "FileJson": true,
-    "FileLocation": "",
+    "FileLocation": "${LOCALSTATEDIR}/log/mattermost",
     "EnableWebhookDebugging": true,
     "EnableDiagnostics": true,
     "EnableSentry": true,
@@ -165,14 +165,14 @@
     "AdvancedLoggingConfig": ""
   },
   "NotificationLogSettings": {
-    "EnableConsole": true,
+    "EnableConsole": false,
     "ConsoleLevel": "INFO",
     "ConsoleJson": true,
     "EnableColor": false,
     "EnableFile": true,
     "FileLevel": "INFO",
     "FileJson": true,
-    "FileLocation": "",
+    "FileLocation": "${LOCALSTATEDIR}/log/mattermost",
     "AdvancedLoggingConfig": ""
   },
   "PasswordSettings": {
@@ -189,7 +189,7 @@
     "MaxFileSize": 104857600,
     "MaxImageResolution": 33177600,
     "DriverName": "local",
-    "Directory": "./data/",
+    "Directory": "${LOCALSTATEDIR}/mattermost/data/",
     "EnablePublicLink": false,
     "ExtractContent": true,
     "ArchiveRecursion": false,
@@ -220,11 +220,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,
@@ -260,7 +260,7 @@
     "SupportEmail": "",
     "CustomTermsOfServiceEnabled": false,
     "CustomTermsOfServiceReAcceptancePeriod": 365,
-    "EnableAskCommunityLink": true
+    "EnableAskCommunityLink": false
   },
   "AnnouncementSettings": {
     "EnableBanner": false,
@@ -366,7 +366,7 @@
   },
   "ComplianceSettings": {
     "Enable": false,
-    "Directory": "./data/",
+    "Directory": "${LOCALSTATEDIR}/mattermost/data/",
     "EnableDaily": false,
     "BatchSize": 30000
   },
@@ -519,8 +519,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": {
@@ -577,11 +577,11 @@
     "AddChannelButton": "by_team_name"
   },
   "ImportSettings": {
-    "Directory": "./import",
+    "Directory": "${LOCALSTATEDIR}/mattermost/import",
     "RetentionDays": 30
   },
   "ExportSettings": {
-    "Directory": "./export",
+    "Directory": "${LOCALSTATEDIR}/mattermost/export",
     "RetentionDays": 30
   }
-}
\ No newline at end of file
+}
