Skip to content

Campaign Brain Infrastructure

cbinfra manages NGINX configurations, deployment scripts, and operational documentation for the Nominate.AI platform.

Overview

Key Features

  • NGINX reverse proxy configuration for all services
  • Systemd service management and templates
  • SSL certificate management (Let's Encrypt)
  • DNS zone configuration (BIND)
  • Centralized logging scripts
  • Operational runbooks

Service Topology

All Campaign Brain services run behind an NGINX reverse proxy:

Service Port URL
tenant-manager (API) 32201 tenant.nominate.ai/api
tenant-manager-frontend 32200 tenant.nominate.ai
cbworkflow 8234 workflow.nominate.ai
mkdocs 8000 docs.nominate.ai
public website 32400 nominate.ai

Port Allocation Scheme

Range Purpose
8000-8999 Development & internal services
32200-32299 Core services (tenant manager)
32300-32399 Tenant deployments
32400-32499 Public-facing services

Key Commands

Log Viewing

./scripts/nominate-logs.sh           # Recent logs (100 lines)
./scripts/nominate-logs.sh -f        # Follow all logs live
./scripts/nominate-logs.sh -e        # Errors only
./scripts/nominate-logs.sh tenant    # Tenant manager only
./scripts/nominate-logs.sh workflow  # Workflow engine only

Service Management

sudo systemctl status <service>
sudo systemctl restart <service>
sudo systemctl daemon-reload  # After editing service files

NGINX

sudo nginx -t              # Test configuration
sudo systemctl reload nginx  # Apply changes

Documentation

File Locations

Item Path
Systemd service templates /etc/systemd/system/webapps/
Active service files /etc/systemd/system/*.service
NGINX configs /etc/nginx/sites-nominate/
DNS zones /etc/bind/zones/
SSL certificates /etc/letsencrypt/live/
Project dirs /home/bisenbek/projects/nominate/