Installing NGINX Server¶
In a production setting, use a proxy server for greater security and performance of Mattermost.
The main benefits of using a proxy are as follows:
- SSL termination
- HTTP to HTTPS redirect
- Port mapping
- Standard request logs
To install NGINX on Ubuntu Server:
- Log in to the server that will host the proxy and open a terminal window.
- Install NGINX.
sudo apt-get install nginx
- After the installation is complete, verify that NGINX is running.
If NGINX is running, you see the following output:<!DOCTYPE html> <html> <head> <title>Welcome to nginx!</title> . . . <p><em>Thank you for using nginx.</em></p> </body> </html>
You can stop, start, and restart NGINX with the following commands:
sudo service nginx stop sudo service nginx start sudo service nginx restart
What to do next
- Map a fully qualified domain name (FQDN) such as
mattermost.example.comto point to the NGINX server.
- Configure NGINX to proxy connections from the internet to the Mattermost Server.