mattermost.patch 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. Index: mattermost-server-5.38.2/Makefile
  2. --- mattermost-server-5.38.2/Makefile.orig 2021-06-10 14:40:25.000000000 +0200
  3. +++ mattermost-server-5.38.2/Makefile 2021-06-16 20:24:17.505824000 +0200
  4. @@ -21,13 +21,13 @@
  5. # Build Flags
  6. BUILD_NUMBER ?= $(BUILD_NUMBER:)
  7. BUILD_DATE = $(shell date -u)
  8. -BUILD_HASH = $(shell git rev-parse HEAD)
  9. +BUILD_HASH = 000000
  10. # If we don't set the build number it defaults to dev
  11. ifeq ($(BUILD_NUMBER),)
  12. BUILD_NUMBER := dev
  13. endif
  14. BUILD_ENTERPRISE_DIR ?= ../enterprise
  15. -BUILD_ENTERPRISE ?= true
  16. +BUILD_ENTERPRISE ?= false
  17. BUILD_ENTERPRISE_READY = false
  18. BUILD_TYPE_NAME = team
  19. BUILD_HASH_ENTERPRISE = none
  20. Index: mattermost-server-5.38.2/build/release.mk
  21. --- mattermost-server-5.38.2/build/release.mk.orig 2021-06-10 14:40:25.000000000 +0200
  22. +++ mattermost-server-5.38.2/build/release.mk 2021-06-16 20:24:17.506241000 +0200
  23. @@ -54,7 +54,8 @@
  24. env GOOS=windows GOARCH=amd64 $(GO) build -o $(GOBIN)/windows_amd64 $(GOFLAGS) -trimpath -ldflags '$(LDFLAGS)' ./cmd/...
  25. endif
  26. -build: build-linux build-windows build-osx
  27. +build:
  28. + $(GO) build -v $(GOFLAGS) $(GO_LINKER_FLAGS) -o mattermost cmd/mattermost/*.go
  29. build-cmd: build-cmd-linux build-cmd-windows build-cmd-osx
  30. Index: mattermost/config/config.json
  31. --- mattermost/config/config.json.orig 2021-06-10 15:33:13.000000000 +0200
  32. +++ mattermost/config/config.json 2021-06-16 23:20:43.595672000 +0200
  33. @@ -1,9 +1,9 @@
  34. {
  35. "ServiceSettings": {
  36. - "SiteURL": "",
  37. + "SiteURL": "http://localhost:8080/",
  38. "WebsocketURL": "",
  39. "LicenseFileLocation": "",
  40. - "ListenAddress": ":8065",
  41. + "ListenAddress": "127.0.0.1:8080",
  42. "ConnectionSecurity": "",
  43. "TLSCertFile": "",
  44. "TLSKeyFile": "",
  45. @@ -148,7 +148,7 @@
  46. },
  47. "SqlSettings": {
  48. "DriverName": "postgres",
  49. - "DataSource": "postgres://mmuser:mostest@localhost/mattermost_test?sslmode=disable\u0026connect_timeout=10",
  50. + "DataSource": "postgresql://mattermost:mattermost@127.0.0.1:5432/mattermost?sslmode=disable&connect_timeout=10",
  51. "DataSourceReplicas": [],
  52. "DataSourceSearchReplicas": [],
  53. "MaxIdleConns": 20,
  54. @@ -209,7 +209,7 @@
  55. "EnableMobileDownload": true,
  56. "MaxFileSize": 104857600,
  57. "DriverName": "local",
  58. - "Directory": "./data/",
  59. + "Directory": "@l_prefix@/var/mattermost/data-fs/",
  60. "EnablePublicLink": false,
  61. "ExtractContent": true,
  62. "ArchiveRecursion": false,
  63. @@ -233,15 +233,15 @@
  64. "SendEmailNotifications": false,
  65. "UseChannelInEmailNotifications": false,
  66. "RequireEmailVerification": false,
  67. - "FeedbackName": "",
  68. - "FeedbackEmail": "",
  69. - "ReplyToAddress": "",
  70. - "FeedbackOrganization": "",
  71. + "FeedbackName": "Mattermost",
  72. + "FeedbackEmail": "mattermost@example.com",
  73. + "ReplyToAddress": "mattermost@example.com",
  74. + "FeedbackOrganization": "Example Corp.",
  75. "EnableSMTPAuth": false,
  76. "SMTPUsername": "",
  77. "SMTPPassword": "",
  78. - "SMTPServer": "",
  79. - "SMTPPort": "10025",
  80. + "SMTPServer": "127.0.0.1",
  81. + "SMTPPort": "25",
  82. "SMTPServerTimeout": 10,
  83. "ConnectionSecurity": "",
  84. "SendPushNotifications": true,
  85. @@ -251,7 +251,7 @@
  86. "EnableEmailBatching": false,
  87. "EmailBatchingBufferSize": 256,
  88. "EmailBatchingInterval": 30,
  89. - "EnablePreviewModeBanner": true,
  90. + "EnablePreviewModeBanner": false,
  91. "SkipServerCertificateVerification": false,
  92. "EmailNotificationContentsType": "full",
  93. "LoginButtonColor": "#0000",
  94. @@ -386,7 +386,7 @@
  95. },
  96. "ComplianceSettings": {
  97. "Enable": false,
  98. - "Directory": "./data/",
  99. + "Directory": "@_prefix@/var/mattermost/data-fs/",
  100. "EnableDaily": false,
  101. "BatchSize": 30000
  102. },
  103. @@ -479,9 +479,9 @@
  104. "MaxUsersForStatistics": 2500
  105. },
  106. "ElasticsearchSettings": {
  107. - "ConnectionUrl": "http://localhost:9200",
  108. + "ConnectionUrl": "http://127.0.0.1:9200",
  109. "Username": "elastic",
  110. - "Password": "changeme",
  111. + "Password": "elastic",
  112. "EnableIndexing": false,
  113. "EnableSearching": false,
  114. "EnableAutocomplete": false,
  115. @@ -539,8 +539,8 @@
  116. "EnableUploads": false,
  117. "AllowInsecureDownloadUrl": false,
  118. "EnableHealthCheck": true,
  119. - "Directory": "./plugins",
  120. - "ClientDirectory": "./client/plugins",
  121. + "Directory": "@l_prefix@/lib/mattermost/plugins",
  122. + "ClientDirectory": "@l_prefix@/etc/mattermost/plugins",
  123. "Plugins": {},
  124. "PluginStates": {
  125. "com.mattermost.nps": {
  126. @@ -594,4 +594,4 @@
  127. "Directory": "./export",
  128. "RetentionDays": 30
  129. }
  130. -}
  131. \ No newline at end of file
  132. +}