BARTIS.DEV
DOCS/hub/Configuration

Gate Configuration

The Gate routes traffic. It supports auto-generated TLS certificates for secure tunneling.

Environment Variables:

  • TUNNEL_PORT: Port for incoming Link connections via TCP (Default: :8080).
  • HEALTH_PORT: Port for Health checks and Push API (Default: :8081).
  • LICENSE_KEY: Your License Key.

Operation Modes:

  • Redis Mode (Cluster):
    • REDIS_ADDR: Redis Address.
    • REDIS_USER: Redis Username (Optional).
    • REDIS_PASSWORD: Redis Password (Optional).
    • REDIS_DB: Redis DB Index.
    • REDIS_USE_TLS: Set to true to enable TLS (e.g., AWS ElastiCache or Nexus).
  • Push Mode (Standalone): Set GATE_SECRET. The Hub will push updates to the Gate.

TLS Configuration (Tunnel):

  • The Gate automatically generates a secure self-signed certificate in RAM if no config is provided.
  • TLS_CERT_PEM / TLS_KEY_PEM: Paste the raw certificate content into these env vars for stateless/swarm deployments.
  • TLS_CERT_FILE / TLS_KEY_FILE: Path to certificate files on disk.
ID: 12LAST UPDATED: 3/1/2026