--- title: "(Recommended) Set up an NGINX proxy" --- A proxy server is a server (a computer system or an application) that acts as an intermediary for requests from clients seeking resources from other servers. Mattermost recommends using a proxy in front of Mattermost to increase security, performance and the ability to monitor and shape traffic connecting to Mattermost: - **Security:** A proxy server can manage Secure Socket Layer (TLS/SSL) encryption and set policy on how network traffic will be routed to the Mattermost server. - **Performance:** In a High Availability configuration, the proxy server balances the network load across multiple Mattermost servers for optimized performance. A hardware proxy with dedicated devices for processing SSL encryption and decryption can also be used to increase performance. - **Monitoring**: A proxy server can monitor connection traffic and record traffic in standard audit logs that common monitoring tools like Kibana and Splunk can consume and report on. Some of the events that can be captured include file uploads and downloads, which are not tracked by the Mattermost server logging process. Mattermost supports the [NGINX proxy](https://www.f5.com/go/product/welcome-to-nginx)  ## Install NGINX server NGINX is a popular web server and is responsible for hosting some of the largest and highest-traffic sites on the internet. It's more resource-friendly than Apache in most cases, and can be used as a web server or reverse proxy. In a production setting, we recommend using a proxy server for greater security and performance of Mattermost: - SSL termination - HTTP to HTTPS redirect - Port mapping `:80` to `:8065` - Standard request logs ### Install NGINX on Ubuntu Server 1. Log in to the server that will host the proxy and open a terminal window. 2. Install NGINX. > Because NGINX is available in Ubuntu's default repositories, it's possible to install it from these repositories using the `apt` packaging system. First, update your local `apt` package index for access to the most recent package listings. Then, install `nginx`: > > ``` sh > sudo apt update > sudo apt install nginx > ``` > > After accepting the procedure, `apt` will install NGINX and any required dependencies to your server. 3. After installing it, you already have everything you need. You can point your browser to your server IP address. You should see the default NGINX landing page: >  > > If you see this page, you've successfully installed NGINX on your web server. This page is included with NGINX to show you that the server is running correctly. > > Or you can also verify it by running `curl http://localhost`. > > If NGINX is running, you see the following output: > > ``` html > <!DOCTYPE html> > > <head> >
Thank you for using nginx.
> >