Netbox installation
  • Prerequisites
  • PostgreSQL Installation
  • Redis Installation
  • NetBox Installation
  • Gunicorn Configuration
  • HTTP Server Setup
  • Playbook - Ansible
Powered by GitBook
On this page
  • Obtain an SSL Certificate
  • HTTP Server Installation
  • Nginx Installation
  • Nginx Configuration

HTTP Server Setup

Obtain an SSL Certificate

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
-keyout /etc/ssl/private/netbox.key \
-out /etc/ssl/certs/netbox.crt

HTTP Server Installation

Nginx Installation

sudo apt install -y nginx

Nginx Configuration

  1. Once nginx is installed, copy the nginx configuration file provided by NetBox to /etc/nginx/sites-available/netbox. Be sure to replace netbox.example.com with the domain name or IP address of your installation. (This should match the value configured for ALLOWED_HOSTS in configuration.py.).

server_name your_ip_address;
sudo cp /opt/netbox/contrib/nginx.conf /etc/nginx/sites-available/netbox
  1. Then, delete /etc/nginx/sites-enabled/default and create a symlink in the sites-enabled directory to the configuration file you just created.

sudo rm /etc/nginx/sites-enabled/default
sudo ln -s /etc/nginx/sites-available/netbox /etc/nginx/sites-enabled/netbox
  1. Finally, restart the nginx service to use the new configuration.

sudo systemctl restart nginx
  1. After that navigate to the dashboard with https://your_ip_address with the credentials (admin/adminpassword).

PreviousGunicorn ConfigurationNextPlaybook - Ansible

Last updated 1 year ago