> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metlo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Nginx

### Installation

Run the following script to install Metlo's Nginx module:

```bash Bash theme={null}
curl https://raw.githubusercontent.com/metlo-labs/metlo-deploy/main/connectors/nginx/install_metlo.sh >> install_metlo.sh
chmod +x install_metlo.sh
./install_metlo.sh [ --ubuntu | --debian ]
```

You can also download and install the module for [ubuntu](https://metlo-releases.s3.us-west-2.amazonaws.com/metlo_nginx_module_amd64_ubuntu_latest.so)
or [debian](https://metlo-releases.s3.us-west-2.amazonaws.com/metlo_nginx_module_amd64_debian_latest.so) manually.

### Setup

Metlo requires two components to be setup within the nginx configuration file

```
# In the main configuration block
...
load_module                     modules/ngx_metlo_module.so;
thread_pool                     metlo threads=2 max_queue=65536;
...
```

After that, just add these environment variables to nginx.

* METLO\_URL: `"https://app.metlo.com:8081"`
* METLO\_API\_KEY: Your Metlo API key
