<commit_before>#   -*- mode: org; fill-column: 60 -*-

#+TITLE: Mattermost Server Install
#+STARTUP: showall
#+TOC: headlines 4
#+PROPERTY: filename
:PROPERTIES:
:CUSTOM_ID: 
:Name:      /home/deerpig/proj/deerpig/runbooks/rb-mattermost-install.org
:Created:   2017-09-14T17:18@Prek Leap (11.642600N-104.919210W)
:ID:        e5ec7ee3-4535-4971-9498-29ac31cd9d30
:VER:       558656392.145004611
:GEO:       48P-491193-1287029-15
:BXID:      proj:FLW4-3575
:Class:     docs
:Type:      runbook
:Status:    stub
:Licence:   MIT/CC BY-SA 4.0
:END:

[[https://img.shields.io/badge/made%20by-Chenla%20Institute-999999.svg?style=flat-square]] 
[[https://img.shields.io/badge/class-docs-56B4E9.svg?style=flat-square]]
[[https://img.shields.io/badge/type-runbook-0072B2.svg?style=flat-square]]
[[https://img.shields.io/badge/status-stub-CC79A7.svg?style=flat-square]]
[[https://img.shields.io/badge/licence-MIT%2FCC%20BY--SA%204.0-000000.svg?style=flat-square]]


* Introduction

Since we've dipped our feet in the water and are using
=GitLab=, we might as well jump all the way in and enable
=GitLab Mattermost=.

  - [[https://docs.gitlab.com/omnibus/gitlab-mattermost/][GitLab Mattermost]] | GitLab Documentation

The rest of this document assumes you already have a working
GitLab installation.

** 1. Create DNS entry for Mattermost

Add a DNS entry for mattermost pointing to the same ip
address where GitLab is installed. e.g. gitlab.example.com
and mattermost.example.com.

** 2. Enable Github Mattermost

GitLab Mattermost is disabled by default, to enable it tell
gitlab what the external URL for Mattermost server is:

File: */etc/gitlab/gitlab.rb*

#+begin_src sh<commit_msg>fixed typo<commit_after>#   -*- mode: org; fill-column: 60 -*-

#+TITLE: Mattermost Server Install
#+STARTUP: showall
#+TOC: headlines 4
#+PROPERTY: filename
:PROPERTIES:
:CUSTOM_ID: 
:Name:      /home/deerpig/proj/deerpig/runbooks/rb-mattermost-install.org
:Created:   2017-09-14T17:18@Prek Leap (11.642600N-104.919210W)
:ID:        e5ec7ee3-4535-4971-9498-29ac31cd9d30
:VER:       558656392.145004611
:GEO:       48P-491193-1287029-15
:BXID:      proj:FLW4-3575
:Class:     docs
:Type:      runbook
:Status:    stub
:Licence:   MIT/CC BY-SA 4.0
:END:

[[https://img.shields.io/badge/made%20by-Chenla%20Institute-999999.svg?style=flat-square]] 
[[https://img.shields.io/badge/class-docs-56B4E9.svg?style=flat-square]]
[[https://img.shields.io/badge/type-runbook-0072B2.svg?style=flat-square]]
[[https://img.shields.io/badge/status-stub-CC79A7.svg?style=flat-square]]
[[https://img.shields.io/badge/licence-MIT%2FCC%20BY--SA%204.0-000000.svg?style=flat-square]]


* Introduction

Since we've dipped our feet in the water and are using
=GitLab=, we might as well jump all the way in and enable
=GitLab Mattermost=.

  - [[https://docs.gitlab.com/omnibus/gitlab-mattermost/][GitLab Mattermost]] | GitLab Documentation

The rest of this document assumes you already have a working
GitLab installation.

** 1. jCreate DNS entry for Mattermost

Add a DNS entry for mattermost pointing to the same ip
address where GitLab is installed. e.g. gitlab.example.com
and mattermost.example.com.

** 2. Enable Github Mattermost

GitLab Mattermost is disabled by default, to enable it tell
gitlab what the external URL for Mattermost server is:

File: */etc/gitlab/gitlab.rb*

#+begin_src sh
{'fraction_non_alphanumeric': 0.13536076326774002, 'fraction_numerical': 0.07930828861061419, 'mean_word_length': 4.177469135802469, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2851927', 'n_tokens_mistral': 1486, 'n_tokens_neox': 1265, 'n_words': 288}