Netbox installation
  • Prerequisites
  • PostgreSQL Installation
  • Redis Installation
  • NetBox Installation
  • Gunicorn Configuration
  • HTTP Server Setup
  • Playbook - Ansible
Powered by GitBook
On this page
  • Configuration
  • Systemd Setup

Gunicorn Configuration

Configuration

  1. NetBox ships with a default configuration file for gunicorn. To use it, copy /opt/netbox/contrib/gunicorn.py to /opt/netbox/gunicorn.py.

sudo cp /opt/netbox/contrib/gunicorn.py /opt/netbox/gunicorn.py

Systemd Setup

  1. We'll use systemd to control both gunicorn and NetBox's background worker process. First, copy contrib/netbox.service and contrib/netbox-rq.service to the /etc/systemd/system/ directory and reload the systemd daemon.

sudo cp -v /opt/netbox/contrib/*.service /etc/systemd/system/
sudo systemctl daemon-reload
  1. Then, start the netbox and netbox-rq services and enable them to initiate at boot time.

sudo systemctl start netbox netbox-rq
sudo systemctl enable netbox netbox-rq
PreviousNetBox InstallationNextHTTP Server Setup

Last updated 1 year ago