Stack:
- Mattermost
- PostgreSQL 12 listening on non-standard port 55434
- Apache as proxy server
Apache configuration derived from: mattermost/docs#1114
Mattermost requires a dedicated virtualhost and it's accessibile only from HTTPS.
To start Mattermost, execute:
config setprop mattermost VirtualHost mattermost.yourdomain.com status enabled signal-event nethserver-mattermost-update
Then, access https://mattermost.yourdomain.com
and perform the first configuration.
Properties:
TCPPort
: Mattermost listen port, change only for development purposeVirtualHost
: dedicated FQDN for virtual hoststatus
: can beenabled
ordisabled
, default todisabled
access
: firewall access, leave blank or at least set tonone
Example:
mattermost=service TCPPort=5432 VirtualHost=mattermost.local.neth.eu access= status=enabled
The mattermost-bulk-user-create
command will:
- create a default team named as the
Company
fromOrganizationContact
- read all users from local or remote Account Providers and create them inside Mattermost
Please note that:
- users disabled in the Server Manager or already existing in Mattermost will be skipped
- a random password will be generated for each user
It's possible to set a default password for each new Mattermost user, just append the default password to command invocation.
Example:
mattermost-bulk-user-create Password,1234
The mattermost
service logs are created under the /opt/mattermost/logs/
directory
and are rotated by Mattermost itself.
Return mattermost status and configuration. No input required.
Example:
{ "status": { "users": "2", "teams": "1", "channels": "2", "posts": "2" }, "configuration": { "props": { "status": "enabled", "access": "", "VirtualHost": "mattermost.nethserver.org", "TCPPort": "5432" }, "name": "mattermost", "type": "service" } }
Constraints:
VirtualHost
: must be a valid FQDN
Example:
{ "props": { "status": "enabled", "VirtualHost": "mattermost.nethserver.org", }, "name": "mattermost", }
Same input as validate.