You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
137 lines
4.5 KiB
137 lines
4.5 KiB
Index: mattermost-server-5.18.0/Makefile |
|
--- mattermost-server-5.18.0/Makefile.orig 2019-10-16 18:25:22.000000000 +0200 |
|
+++ mattermost-server-5.18.0/Makefile 2019-10-20 10:57:31.720667000 +0200 |
|
@@ -6,13 +6,13 @@ |
|
# Build Flags |
|
BUILD_NUMBER ?= $(BUILD_NUMBER:) |
|
BUILD_DATE = $(shell date -u) |
|
-BUILD_HASH = $(shell git rev-parse HEAD) |
|
+BUILD_HASH = 000000 |
|
# If we don't set the build number it defaults to dev |
|
ifeq ($(BUILD_NUMBER),) |
|
BUILD_NUMBER := dev |
|
endif |
|
BUILD_ENTERPRISE_DIR ?= ../enterprise |
|
-BUILD_ENTERPRISE ?= true |
|
+BUILD_ENTERPRISE ?= false |
|
BUILD_ENTERPRISE_READY = false |
|
BUILD_TYPE_NAME = team |
|
BUILD_HASH_ENTERPRISE = none |
|
Index: mattermost-server-5.18.0/build/release.mk |
|
--- mattermost-server-5.18.0/build/release.mk.orig 2019-10-16 18:25:22.000000000 +0200 |
|
+++ mattermost-server-5.18.0/build/release.mk 2019-10-20 10:57:31.720824000 +0200 |
|
@@ -13,7 +13,8 @@ |
|
@echo Build Windows amd64 |
|
env GOOS=windows GOARCH=amd64 $(GO) install -i $(GOFLAGS) -ldflags '$(LDFLAGS)' ./... |
|
|
|
-build: build-linux build-windows build-osx |
|
+build: |
|
+ $(GO) build -v $(GOFLAGS) $(GO_LINKER_FLAGS) -o mattermost cmd/mattermost/*.go |
|
|
|
build-client: |
|
@echo Building mattermost web app |
|
Index: mattermost/config/config.json |
|
--- mattermost/config/config.json.orig 2019-10-17 01:08:43.000000000 +0200 |
|
+++ mattermost/config/config.json 2019-10-20 10:58:38.806270000 +0200 |
|
@@ -1,9 +1,9 @@ |
|
{ |
|
"ServiceSettings": { |
|
- "SiteURL": "", |
|
+ "SiteURL": "http://localhost:8080/", |
|
"WebsocketURL": "", |
|
"LicenseFileLocation": "", |
|
- "ListenAddress": ":8065", |
|
+ "ListenAddress": "127.0.0.1:8080", |
|
"ConnectionSecurity": "", |
|
"TLSCertFile": "", |
|
"TLSKeyFile": "", |
|
@@ -127,8 +127,8 @@ |
|
"IosMinVersion": "" |
|
}, |
|
"SqlSettings": { |
|
- "DriverName": "mysql", |
|
- "DataSource": "mmuser:mostest@tcp(localhost:3306)/mattermost_test?charset=utf8mb4,utf8\u0026readTimeout=30s\u0026writeTimeout=30s", |
|
+ "DriverName": "postgres", |
|
+ "DataSource": "postgresql://mattermost:mattermost@127.0.0.1:5432/mattermost?sslmode=disable&connect_timeout=10", |
|
"DataSourceReplicas": [], |
|
"DataSourceSearchReplicas": [], |
|
"MaxIdleConns": 20, |
|
@@ -171,7 +171,7 @@ |
|
"EnableMobileDownload": true, |
|
"MaxFileSize": 52428800, |
|
"DriverName": "local", |
|
- "Directory": "./data/", |
|
+ "Directory": "@l_prefix@/var/mattermost/data-fs/", |
|
"EnablePublicLink": false, |
|
"PublicLinkSalt": "", |
|
"InitialFont": "nunito-bold.ttf", |
|
@@ -192,15 +192,15 @@ |
|
"SendEmailNotifications": false, |
|
"UseChannelInEmailNotifications": false, |
|
"RequireEmailVerification": false, |
|
- "FeedbackName": "", |
|
- "FeedbackEmail": "", |
|
- "ReplyToAddress": "", |
|
- "FeedbackOrganization": "", |
|
+ "FeedbackName": "Mattermost", |
|
+ "FeedbackEmail": "mattermost@example.com", |
|
+ "ReplyToAddress": "mattermost@example.com", |
|
+ "FeedbackOrganization": "Example Corp.", |
|
"EnableSMTPAuth": false, |
|
"SMTPUsername": "", |
|
"SMTPPassword": "", |
|
- "SMTPServer": "", |
|
- "SMTPPort": "10025", |
|
+ "SMTPServer": "127.0.0.1", |
|
+ "SMTPPort": "25", |
|
"ConnectionSecurity": "", |
|
"SendPushNotifications": true, |
|
"PushNotificationServer": "https://push-test.mattermost.com", |
|
@@ -208,7 +208,7 @@ |
|
"EnableEmailBatching": false, |
|
"EmailBatchingBufferSize": 256, |
|
"EmailBatchingInterval": 30, |
|
- "EnablePreviewModeBanner": true, |
|
+ "EnablePreviewModeBanner": false, |
|
"SkipServerCertificateVerification": false, |
|
"EmailNotificationContentsType": "full", |
|
"LoginButtonColor": "#0000", |
|
@@ -311,7 +311,7 @@ |
|
}, |
|
"ComplianceSettings": { |
|
"Enable": false, |
|
- "Directory": "./data/", |
|
+ "Directory": "@_prefix@/var/mattermost/data-fs/", |
|
"EnableDaily": false |
|
}, |
|
"LocalizationSettings": { |
|
@@ -384,9 +384,9 @@ |
|
"MaxUsersForStatistics": 2500 |
|
}, |
|
"ElasticsearchSettings": { |
|
- "ConnectionUrl": "http://localhost:9200", |
|
+ "ConnectionUrl": "http://127.0.0.1:9200", |
|
"Username": "elastic", |
|
- "Password": "changeme", |
|
+ "Password": "elastic", |
|
"EnableIndexing": false, |
|
"EnableSearching": false, |
|
"EnableAutocomplete": false, |
|
@@ -435,8 +435,8 @@ |
|
"EnableUploads": false, |
|
"AllowInsecureDownloadUrl": false, |
|
"EnableHealthCheck": true, |
|
- "Directory": "./plugins", |
|
- "ClientDirectory": "./client/plugins", |
|
+ "Directory": "@l_prefix@/lib/mattermost/plugins", |
|
+ "ClientDirectory": "@l_prefix@/etc/mattermost/plugins", |
|
"Plugins": {}, |
|
"PluginStates": { |
|
"com.mattermost.nps": { |
|
@@ -462,4 +462,4 @@ |
|
"RemoteImageProxyURL": "", |
|
"RemoteImageProxyOptions": "" |
|
} |
|
-} |
|
\ No newline at end of file |
|
+}
|
|
|