Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-11-23 18:13:51 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-11-23 18:13:51 +0300
commit61cb988554d7d554f0e9727fc73acc9acba5ea8f (patch)
tree49e910dd011e4b07476726f31e77b20a7efe1ccb /doc/integration
parente1a5a2f484427b549a200c2443da0c1987f6743a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/integration')
-rw-r--r--doc/integration/mattermost/index.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/integration/mattermost/index.md b/doc/integration/mattermost/index.md
index c8a58f0692f..cc05f4b904c 100644
--- a/doc/integration/mattermost/index.md
+++ b/doc/integration/mattermost/index.md
@@ -80,6 +80,27 @@ where `mattermost-nginx.crt` is the SSL certificate and `mattermost-nginx.key` i
Once the configuration is set, run `sudo gitlab-ctl reconfigure` to apply the changes.
+## Running GitLab Mattermost with an external PostgreSQL service
+
+By default, Mattermost uses the Linux package bundled PostgreSQL service. If you want to use Mattermost with an external PostgreSQL service, it requires its own specific configuration. An existing [external PostgreSQL connection configuration used by GitLab](../../administration/postgresql/external.md) is not automatically inherited for Mattermost.
+
+1. Edit `/etc/gitlab/gitlab.rb` and specify the following configuration:
+
+ ```ruby
+ mattermost['sql_driver_name'] = 'postgres'
+ mattermost['sql_data_source'] = "user=gitlab_mattermost host=<hostname-of-postgresql-service> port=5432 sslmode=required dbname=<mattermost_production> password=<user-password>"
+ ```
+
+1. Create a PostgreSQL user matching the `user` value, and `password` value that you have defined in `mattermost['sql_data_source']`.
+1. Create a PostgreSQL database matching the `dbname` value that was used.
+1. Ensure that the `user` has permissions to the database that was created with `dbname`.
+
+1. Reconfigure GitLab and restart Mattermost to apply the changes:
+
+ ```shell
+ sudo gitlab-ctl reconfigure && sudo gitlab-ctl restart mattermost
+ ```
+
## Running GitLab Mattermost on its own server
If you want to run GitLab and GitLab Mattermost on two separate servers the GitLab services are still set up on your GitLab Mattermost server, but they do not accept user requests or