Server Install

This document helps you get NGINX Instance Manager up and running.


  1. Get the installation packages or binaries.
  2. Get license files.
    1. Download NGINX Instance Manager Server license file (for production use)
    2. Optional: Download repository certificate and key (for repo access)
  3. Create a Linux instance for hosting the NGINX Instance Manager Server.
    1. Ensure the firewall is open for gRPC port and API/GUI port.
    2. Suggested sizing is 2GB Memory, 1 vCPU, and 20GB disk space.

Install Server

The most difficult part is getting the packages onto your installed OS. You can choose one of the following two options:

  • Use the public NGINX repositories with a certificate and key or internal package management system (like Red Hat Satellite)
  • Use the packages directly by downloading them from the myF5 portal or from NGINX/F5 sales team.

License File Locations

There are three license files included with NGINX Instance Manager:

  1. NGINX-Instance-Manager.lic (may be named differently): This is the nginx-manager server license and is placed in the /etc/nginx-manager/ directory. It is referenced by the license: option in the /etc/nginx-manager/nginx-manager.conf file. Without this file, you will only see the scan functions and the inventory page will display an error.
  2. nginx-repo.crt or nginx-repo.cer (this may have the extension .cer): This file is used to run NGINX Plus as a proxy for nginx-manager and is also used to pull packages from the public repositories. The apt and yum repository files reference this and the private key file below to pull packages. You can place these files in /etc/ssl/nginx following the instructions for setting up the repository below.
  3. nginx-repo.key: This file is used with the crt file above for running NGINX Plus and accessing repositories for nginx-manager and nginx-agent.

To use the repositories without modification; rename, and move, the nginx-repo files to:

  • /etc/ssl/nginx/nginx-repo.crt
  • /etc/ssl/nginx/nginx-repo.key

Install from the NGINX public repositories

This method allows you to use a simple yum or apt-get install and use of the nginx-repo.crt and nginx-repo.key.

  1. Create the /etc/ssl/nginx directory
$ sudo mkdir /etc/ssl/nginx
$ cd /etc/ssl/nginx
  1. Log in to MyF5 Customer Portal and download your nginx-manager-repo.crt and nginx-manager-repo.key files. You should rename nginx-repo.cer and nginx-repo.key (or similar name) to the suggested names.

  2. Copy the files to the /etc/ssl/nginx/ directory.

$ sudo cp nginx-*.crt /etc/ssl/nginx/nginx-repo.crt
$ sudo cp nginx-*.key /etc/ssl/nginx/nginx-repo.key
  1. Install the required certificate authority dependencies.

$ sudo yum install ca-certificates

$ sudo apt-get install apt-transport-https lsb-release ca-certificates
$ sudo wget
$ sudo apt-key add nginx_signing.key
  1. Install the repository file.

$ sudo wget -P /etc/yum.repos.d

$ printf "deb stable nginx-plus\n" | sudo tee /etc/apt/sources.list.d/instance-manager.list
$ sudo wget -q -O /etc/apt/apt.conf.d/90pkgs-nginx
$ sudo apt-get update
$ cat /etc/apt/apt.conf.d/90pkgs-nginx "true"; "true";     "/etc/ssl/nginx/nginx-repo.crt";      "/etc/ssl/nginx/nginx-repo.key";
  1. Install the Instance Manager Server.

$ sudo yum install -y nginx-manager

If you have a signing key error run the following

$ curl -o /tmp/nginx_signing.key
$ sudo rpmkeys --import /tmp/nginx_signing.key

$ sudo apt-get install -y nginx-manager
  1. Proceed to Server Configuration Section.

Install from package files directly

You will need the packages for NGINX Instance Manager. Download them directly from MyF5 Customer Portal or use the one provided by your NGINX Sales Team. Run updates manually with this method (take the following steps and run the rpm or apt-get update commands for newer packages).

  1. Installation.
$ sudo yum -y --nogpgcheck install /home/user/nginx-manager-0.9.0-1.x86_64.rpm
  1. Upgrades.
$ sudo yum -y --nogpgcheck upgrade /home/user/nginx-manager-0.9.1-1.x86_64.rpm

  1. Installation.
$ sudo apt-get -y install /home/user/nginx-manager-0.9.0-1_amd64.deb
  1. Upgrades.
$ sudo apt-get -y upgrade /home/user/nginx-manager-0.9.1-1_amd64.deb

Configure NGINX Instance Manager Server

Configure the NGINX Instance Manager Server for use with or without an NGINX proxy.

  1. Add the license file to the /etc/nginx-manager directory. Ensure the name matches what is in the nginx-manager.conf file. (above exmaple uses nginx-manager.lic)

NGINX Instance Manager without a proxy server

NGINX Instance Manager defaults to running on only (it is not exposed to external interfaces). It is recommmended to use the included NGINX Plus package to proxy traffic to NGINX Instance Manager.

If your organization prevents this or you wish to test Instance Manager in a secured environment without any authentication, you can enable Instance Manager to listen on external interfaces.

  1. Open any required firewall ports or SELinux/apparmor rules for the ports and IPs you wish to use.

  2. Edit the /etc/nginx-manager/nginx-manager.conf file and change the bind-address and ports to reflect your choices. For example, the following file will listen on ip and use the default ports of 11000 for UI/API and 10000 for grpc

# /etc/nginx-manager/nginx-manager.conf

# Configuration file for NGINX Instance Manager Server

# bind address for all service ports (default "")
# gRPC service port for agent communication (default "10000")
grpc-port: 10000
# gRPC-gateway service port for API and UI (default "11000")
gateway-port: 11000

# SSL CN or servername for certs
# server-name:
# path to x.509 certificate file (optional)
# cert: /etc/ssl/nginx-manager/nginx-manager.crt
# path to x.509 certificate key file (optional)
# key: /etc/ssl/nginx-manager/nginx-manager.key

# set log level (panic, fatal, error, info, debug, trace; default: info) (default "info")
    level: info
    path: /var/log/nginx-manager/
# Metrics default storage path (default "/tmp/metrics") (directory must be already present)
    storage-path: /var/nginx-manager/
# Path to license file
license: /etc/nginx-manager/nginx-manager.lic

You can also use for the bind-address to enable all external ports (note this is insecure).

NGINX Instance Manager with a proxy server

NGINX Instance Manager is designed as a web application with an API. NGINX Plus is our recommended solution for web applications requiring advanced authentication, proxy, and load balancing. A copy of NGINX Plus is included with the NGINX Instance Manager distribution to be used as a frontend for NGINX Instance Manager. This is the only permitted use of the included NGINX Plus instance. For external uses and other systems, contact your sales team to purchase additional subscriptions.

For installation options on using NGINX Plus or NGINX as a front-end for NGINX Instance Manager, refer to the encryption and authentication documents.

Installing NGINX Plus as the proxy server

The repository certificate and key (nginx-repo.crt and nginx-repo.key) can be used to pull an nginx-plus package that is used to proxy connections to nginx-manager. To setup NGINX Plus, use the included certificate and key (it may be easier to copy them into /etc/ssl/nginx/nginx-repo.crt and /etc/ssl/nginx/nginx-repo.key) and follow the NGINX Plus Installation Steps.


NGINX Instance Manager also has an SELinux policy module that can be installed on SELinux enabled systems. It is provided as an RPM and can be pulled from the same repository as the server packages. You can do this manually as well and place ports in the httpd context.

Install SELinux Policy Module

$ sudo yum install -y nginx-manager_selinux

Add ports for Instance Manager SELinux context

Instance Manager uses the nginx-manager_t context in the policy module and you will have to verify and add any ports you use. For external ports, you should also add them to the firewall exceptions.

To add a port to the nginx-manager context, you can use a similar command to one one below that adds 10001 and 11001:

$ sudo semanage port -a -t nginx_manager_port_t -p tcp 10001
$ sudo semanage port -a -t nginx_manager_port_t -p tcp 11001

If you already have defined the port context, replace -a with -m:

$ sudo semanage port -m -t nginx_manager_port_t -p tcp 10001
$ sudo semanage port -m -t nginx_manager_port_t -p tcp 11001

Remove ports for Instance Manager SELinux context

If you remove nginx-manager-selinux you should also remove the ports using a command similar to the one below:

$ sudo semanage port -d -t nginx_manager_port_t 10001
$ sudo semanage port -d -t nginx_manager_port_t 11001

Start and Enable NGINX Instance Manager Server

For systemd systems perform the following steps.

  1. Start the NGINX Instance Manager Server.
$ sudo systemctl start nginx-manager
  1. Enable the NGINX Instance Manager Server to start on boot.
$ sudo systemctl enable nginx-manager

$ sudo initctl start nginx-manager

Access the GUI

Point your browser to the FQDN and port you configured Instance Manager on. If your servername is and the port is 11000, then your browser can access the UI at

Access the Swagger-UI API

To access the swagger-ui page, simply append ‘/swagger-ui’ to the end of the url. For example, the server above would be

Access the metrics endpoint

To access metrics through grafana or prometheus, configure the data source as a prometheus endpoint and add ‘/metrics’ to the end of the url. For example, the server above would be

What’s Next

  • Configure Authentication on the Server
  • Configure nginx-agent on nginx instances
  • Use Grafana to display metrics
  • Scan a network range for new instances