![]() # Fix permissions if required sudo chown -R mattermost:mattermost /var/opt/gitlab/mattermost/data # Perform the database restore # Replace /tmp/mattermost_dbdump_.sql.gz with your backup sudo -u mattermost sh -c "zcat /tmp/mattermost_dbdump_.sql.gz | /opt/gitlab/embedded/bin/psql -U gitlab_mattermost -h /var/opt/gitlab/postgresql -p 5432 mattermost_production" # Restore the data directory and config.json # Replace /tmp/mattermost_data_.gz with your backup sudo tar -xzvf /tmp/mattermost_data_.gz -C /var/opt/gitlab/mattermost # Create the Mattermost database sudo -u gitlab-psql /opt/gitlab/embedded/bin/createdb -U gitlab-psql -h /var/opt/gitlab/postgresql -p 5432 mattermost_production # Drop the Mattermost database sudo -u gitlab-psql /opt/gitlab/embedded/bin/dropdb -U gitlab-psql -h /var/opt/gitlab/postgresql -p 5432 mattermost_production # Stop Mattermost so we don't have any open database connections sudo gitlab-ctl stop mattermost If the directory doesn’t exist, create it: Place the SSL certificate and SSL certificate key inside /etc/gitlab/ssl. Any settings configured in this way are disabled from the System Console and cannot be changed without restarting Mattermost. Specify environment variables used to run Mattermost by changing the mattermost setting in gitlab.rb.Edit the Mattermost configuration directly through /var/opt/gitlab/mattermost/config.json.While using the System Console is recommended, you can also configure Mattermost using one of the following options: Mattermost settings and where they can be set is available in the Mattermost documentation. Starting in GitLab 11.0, Mattermost can be configured using the Mattermost System Console. You need to manually authorize GitLab Mattermost for access to GitLab using the process described in the Authorize GitLab Mattermost section. The Omnibus GitLab package attempts to automatically authorize GitLab Mattermost with GitLab if the applications are running on the same server.Īutomatic authorization requires access to the GitLab database. Authorizing Mattermost with GitLab allows users to use GitLab as an SSO provider. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |