Skip to content

Configuration

Environment Variables

  • MYSQL_HOST: MySQL/MariaDB host (default: localhost)
  • MYSQL_USER: Database user (default: user)
  • MYSQL_PASSWORD: Database password (default: password)
  • MYSQL_DATABASE: Database name (default: ipam)
  • SECRET_KEY: Flask secret key for sessions (REQUIRED in production!)
  • NAME: Organisation name displayed in header (default: JDB-NET)
  • LOGO_PNG: URL or path to organisation logo (default: JDB-NET logo)

Database Setup

The application automatically initializes the database schema on first run. Ensure the database and user exist with appropriate permissions:

CREATE DATABASE ipam;
CREATE USER 'ipam'@'%' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON ipam.* TO 'ipam'@'%';
FLUSH PRIVILEGES;