Start and configure a mattermost instance. The module uses Mattermost Docker Image for Team Edition.
Instantiate the module with:
add-module ghcr.io/nethserver/mattermost:latest 1
The output of the command will return the instance name. Output example:
{"module_id": "mattermost1", "image_name": "mattermost", "image_url": "ghcr.io/nethserver/mattermost:latest"}
Let's assume that the mattermost instance is named mattermost1
.
Launch configure-module
, by setting the following parameters:
host
: a fully qualified domain name for the applicationhttp2https
: enable or disable HTTP to HTTPS redirectionlets_encrypt
: enable or disable Let's Encrypt certificate
Example:
api-cli run configure-module --agent module/mattermost1 --data - <<EOF
{
"host": "mattermost.domain.com",
"http2https": true,
"lets_encrypt": false
}
EOF
The above command will:
- start and configure the mattermost instance
- configure a virtual host for trafik to access the instance
You can retrieve the configuration with
api-cli run get-configuration --agent module/mattermost1 --data null | jq
To uninstall the instance:
remove-module --no-preserve mattermost1
Test the module using the test-module.sh
script:
./test-module.sh <NODE_ADDR> ghcr.io/nethserver/mattermost:latest
The tests are made using Robot Framework