Installation

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

Bash
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 or debian 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