I tried too much and I do not know the root cause. As a result I succeeded in the setting I was trying in the early days. And I can use it even if I am not currently root.
Point for Plesk use:
- Installation location can be ‘/opt’.
- Users and groups are also mattermost.
- Unlike the official guide, only proxy_pass needs “$request_uri”. websocket does not need ‘$request_uri’. And not “https”, “http” is correct. This is also websocket.
- All “SecurityConnections” and “TLSCertFile” and “TLSKeyFile” items of ServerSetthings in config.json are blank.
- The database hostname designation in SqlSettings of Config.json specifies the IP address of the server, not “localhost or 127.0.0.1”. Of course grant authority with MariaDB.
- Prepare a config file for Mattermost in /etc/nginx/conf.d/. And write upstream and proxy_cache_path settings.
- Change the mattermost user’s home directory to ‘/opt/mattermost’. Is not this a problem?
I have a basic operation in these.