Skip to content

Install RBT: NGINX

NGINX is the public HTTP entry point for RBT. The project configuration redirects plain HTTP to HTTPS and proxies browser and API traffic to the appropriate internal application services.

This page is one step in the complete RBT installation guide.

Before you start

  • Point the production hostname to this server before requesting TLS certificates.
  • Review any existing virtual hosts before removing the distribution default.
  • Allow inbound TCP ports 80 and 443 through the host and upstream firewalls.

Expected result

The RBT virtual host should be enabled and the complete NGINX configuration should pass validation before the service is reloaded.

Verify this step

test -L /etc/nginx/sites-enabled/rbt && readlink -f /etc/nginx/sites-enabled/rbt
nginx -t

Configure Nginx

rm /etc/nginx/sites-enabled/default
ln -sf /opt/rbt/install/nginx/rbt_force_ssl /etc/nginx/sites-enabled/rbt

Instance-specific location directives can be stored in /etc/nginx/rbt.d/*.conf. These files are included in the main RBT server block and are not affected by repository updates.

mkdir -p /etc/nginx/rbt.d
nginx -t

Next