]> Nutra Git (v1) - nutratech/vps-root.git/commitdiff
update mattermost stuff, deleted nested config lol
authornutra-bot <nutradigest@gmail.com>
Wed, 27 Jul 2022 19:10:20 +0000 (19:10 +0000)
committernutra-bot <nutradigest@gmail.com>
Wed, 27 Jul 2022 19:10:20 +0000 (19:10 +0000)
opt/mattermost/config/config.json
opt/mpns/config/build.txt [new file with mode: 0644]
opt/mpns/config/mattermost-push-proxy.json [new file with mode: 0644]

index 54a8a777fb231968fdb52b951aa967787840eca2..43ba2368bd9b9efcdc7107fd91c43dbc65cbff65 100644 (file)
@@ -26,7 +26,7 @@
         "EnableCommands": true,
         "EnablePostUsernameOverride": false,
         "EnablePostIconOverride": false,
-        "GoogleDeveloperKey": "AIzaSyC_Q9xL_O0-ffiU-YzKceZ9kopmdslcyzg",
+        "GoogleDeveloperKey": "",
         "EnableLinkPreviews": true,
         "EnablePermalinkPreviews": true,
         "RestrictLinkPreviews": "",
         "AllowCookiesForSubdomains": false,
         "ExtendSessionLengthWithActivity": true,
         "SessionLengthWebInDays": 30,
-        "SessionLengthWebInHours": 1440,
+        "SessionLengthWebInHours": 720,
         "SessionLengthMobileInDays": 30,
-        "SessionLengthMobileInHours": 1440,
+        "SessionLengthMobileInHours": 720,
         "SessionLengthSSOInDays": 30,
-        "SessionLengthSSOInHours": 1440,
+        "SessionLengthSSOInHours": 720,
         "SessionCacheInMinutes": 10,
         "SessionIdleTimeoutInMinutes": 43200,
         "WebsocketSecurePort": 443,
@@ -87,7 +87,7 @@
         "EnableBotAccountCreation": false,
         "EnableSVGs": false,
         "EnableLatex": false,
-        "EnableInlineLatex": false,
+        "EnableInlineLatex": true,
         "EnableAPIChannelDeletion": false,
         "EnableLocalMode": false,
         "LocalModeSocketLocation": "/var/tmp/mattermost_local.socket",
         "EnableFileAttachments": true,
         "EnableMobileUpload": true,
         "EnableMobileDownload": true,
-        "MaxFileSize": 1048576,
+        "MaxFileSize": 104857600,
         "MaxImageResolution": 33177600,
         "MaxImageDecoderConcurrency": -1,
         "DriverName": "local",
         "Directory": "./data/",
         "EnablePublicLink": false,
-        "ExtractContent": false,
+        "ExtractContent": true,
         "ArchiveRecursion": false,
         "PublicLinkSalt": "odx3o8du3nknt74sjiuf8z1784bq5bgu",
         "InitialFont": "nunito-bold.ttf",
         "AmazonS3PathPrefix": "",
         "AmazonS3Region": "",
         "AmazonS3Endpoint": "s3.amazonaws.com",
-        "AmazonS3SSL": false,
+        "AmazonS3SSL": true,
         "AmazonS3SignV2": false,
         "AmazonS3SSE": false,
         "AmazonS3Trace": false
         "UseChannelInEmailNotifications": false,
         "RequireEmailVerification": false,
         "FeedbackName": "Mattermost Notification",
-        "FeedbackEmail": "noreply@dev.nutra.tk",
+        "FeedbackEmail": "admin@dev.nutra.tk",
         "ReplyToAddress": "",
         "FeedbackOrganization": "",
         "EnableSMTPAuth": false,
         "SMTPPort": "25",
         "SMTPServerTimeout": 10,
         "ConnectionSecurity": "",
-        "SendPushNotifications": true,
-        "PushNotificationServer": "127.0.0.1:8066",
+        "SendPushNotifications": false,
+        "PushNotificationServer": "http://127.0.0.1:8066",
         "PushNotificationContents": "full",
         "PushNotificationBuffer": 1000,
         "EnableEmailBatching": false,
         "AboutLink": "https://docs.mattermost.com/about/product.html/",
         "HelpLink": "https://mattermost.com/default-help/",
         "ReportAProblemLink": "https://mattermost.com/default-report-a-problem/",
-        "SupportEmail": "noreply@dev.nutra.tk",
+        "SupportEmail": "support@dev.nutra.tk",
         "CustomTermsOfServiceEnabled": false,
         "CustomTermsOfServiceReAcceptancePeriod": 365,
         "EnableAskCommunityLink": true
         "ChimeraOAuthProxyURL": ""
     },
     "DisplaySettings": {
-        "CustomURLSchemes": [
-            "git"
-        ],
+        "CustomURLSchemes": [],
         "ExperimentalTimezone": true
     },
     "GuestAccountsSettings": {
diff --git a/opt/mpns/config/build.txt b/opt/mpns/config/build.txt
new file mode 100644 (file)
index 0000000..139597f
--- /dev/null
@@ -0,0 +1,2 @@
+
+
diff --git a/opt/mpns/config/mattermost-push-proxy.json b/opt/mpns/config/mattermost-push-proxy.json
new file mode 100644 (file)
index 0000000..ef0fb17
--- /dev/null
@@ -0,0 +1,36 @@
+{
+    "ListenAddress":":8066",
+    "ThrottlePerSec":300,
+    "ThrottleMemoryStoreSize":50000,
+    "ThrottleVaryByHeader":"X-Forwarded-For",
+    "EnableMetrics": false,
+    "ApplePushSettings":[
+        {
+            "Type":"apple",
+            "ApplePushUseDevelopment":false,
+            "ApplePushCertPrivate":"",
+            "ApplePushCertPassword":"",
+            "ApplePushTopic":"com.mattermost.Mattermost"
+        },
+        {
+            "Type":"apple_rn",
+            "ApplePushUseDevelopment":false,
+            "ApplePushCertPrivate":"",
+            "ApplePushCertPassword":"",
+            "ApplePushTopic":"com.mattermost.react.native"
+        }
+    ],
+    "AndroidPushSettings":[
+        {
+            "Type":"android",
+            "AndroidApiKey":"AAAAYwMNiGQ:APA91bHHhQwlbcTaKOc_6CjCCUysLNEPQK9qsiAeUzTBmeY2WoUuqtmsKSq2joTKzyGDw8R4KqZHklUh4-JJ3ut6Uyg8Th5B54yp4luIcKcaNFxbhG9Lh40wJ9O9CqXaQIHoeAAQtoCk"
+        },
+        {
+            "Type":"android_rn",
+            "AndroidApiKey":"AAAAYwMNiGQ:APA91bHHhQwlbcTaKOc_6CjCCUysLNEPQK9qsiAeUzTBmeY2WoUuqtmsKSq2joTKzyGDw8R4KqZHklUh4-JJ3ut6Uyg8Th5B54yp4luIcKcaNFxbhG9Lh40wJ9O9CqXaQIHoeAAQtoCk"
+        }
+    ],
+    "EnableConsoleLog": true,
+    "EnableFileLog": false,
+    "LogFileLocation": ""
+}