$OpenBSD: patch-config_config_json,v 1.5 2020/04/18 20:49:05 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,
@@ -143,13 +143,13 @@
     "QueryTimeout": 30
   },
   "LogSettings": {
-    "EnableConsole": true,
+    "EnableConsole": false,
     "ConsoleLevel": "INFO",
     "ConsoleJson": true,
     "EnableFile": true,
     "FileLevel": "INFO",
     "FileJson": true,
-    "FileLocation": "",
+    "FileLocation": "${LOCALSTATEDIR}/log/mattermost",
     "EnableWebhookDebugging": true,
     "EnableDiagnostics": true
   },
@@ -170,13 +170,13 @@
     "FileMaxQueueSize": 1000
   },
   "NotificationLogSettings": {
-    "EnableConsole": true,
+    "EnableConsole": false,
     "ConsoleLevel": "INFO",
     "ConsoleJson": true,
     "EnableFile": true,
     "FileLevel": "INFO",
     "FileJson": true,
-    "FileLocation": ""
+    "FileLocation": "${LOCALSTATEDIR}/log/mattermost"
   },
   "PasswordSettings": {
     "MinimumLength": 10,
@@ -191,7 +191,7 @@
     "EnableMobileDownload": true,
     "MaxFileSize": 52428800,
     "DriverName": "local",
-    "Directory": "./data/",
+    "Directory": "${LOCALSTATEDIR}/mattermost/data/",
     "EnablePublicLink": false,
     "PublicLinkSalt": "",
     "InitialFont": "nunito-bold.ttf",
@@ -219,11 +219,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": "generic",
     "EnableEmailBatching": false,
@@ -336,7 +336,7 @@
   },
   "ComplianceSettings": {
     "Enable": false,
-    "Directory": "./data/",
+    "Directory": "${LOCALSTATEDIR}/mattermost/data/",
     "EnableDaily": false
   },
   "LocalizationSettings": {
@@ -467,8 +467,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": {
@@ -498,4 +498,4 @@
     "RemoteImageProxyURL": "",
     "RemoteImageProxyOptions": ""
   }
-}
\ No newline at end of file
+}
