Shared Hosting for Everyone, imagined by developers, for developers.
Discovering the Public CloudMattermost is an instant messaging software.
In our example, we use the SSH access and consider the following information:
foo
$HOME/mattermost/
foo_mattermost
- to be created in the Databases > PostgreSQL menu of the administration interface[foo]
and [version]
must be replaced by accurate informations.
foo@ssh:~/mattermost$ wget -O- https://releases.mattermost.com/[version]/mattermost-[version]-linux-amd64.tar.gz | tar -xz --strip-components=1
foo@ssh:~/mattermost$ mkdir data
A database and its user will have to be created in the Databases menu. Here we create them to be of the form account_mattermost
.
Modify the $HOME/mattermost/config/config.json
file to put:
"ListenAddress": ":8300",
"LocalModeSocketLocation": "$HOME/admin/tmp/mattermost_local.socket",
"DriverName": "postgres",
"DataSource": "postgres://[pgsql_username]:[pgsql_password]@postgresql-[foo].alwaysdata.net:5432/[foo]_mattermost?sslmode=disable\u0026connect_timeout=10",
Create a service with following details:
/home/[foo]/mattermost/bin/mattermost
/home/[foo]/mattermost
Declare a site, type Reverse proxy with:
services-[foo].alwaysdata.net:8300