Files
roboco/.env.example
T

112 lines
4.9 KiB
Bash
Raw Normal View History

2025-12-10 02:49:54 +01:00
# =============================================================================
# RoboCo Environment Configuration
# =============================================================================
2025-12-14 22:05:34 +01:00
# Copy this file to .env
#
# NOTE: No API keys needed for agents - they use your Claude Code authentication.
# Run `claude` on the host to authenticate before starting RoboCo.
2025-12-10 02:49:54 +01:00
2025-12-14 22:05:34 +01:00
# =============================================================================
# Docker Deployment (NAS/Server)
# =============================================================================
# These are REQUIRED when running via docker compose on a NAS/server.
# They tell the orchestrator container where to find files on the HOST.
# Path to the project on the host (absolute path)
# ROBOCO_HOST_PROJECT_DIR=/volume1/roboco
# Path to Claude Code auth directory on the host
# ROBOCO_HOST_CLAUDE_DIR=/root/.claude
# Claude auth directory to mount into orchestrator
# CLAUDE_AUTH_DIR=~/.claude
# =============================================================================
# Container Images (docker-compose.registry.yml — pre-built deployment)
# =============================================================================
# Only used by docker-compose.registry.yml, which runs the published images
# instead of building from source. Defaults shown.
# Registry namespace: ghcr.io/rennf93 (GHCR) or docker.io/renzof93 (Docker Hub)
# ROBOCO_REGISTRY=ghcr.io/rennf93
# Image tag: latest, or a pinned release such as 0.5.0
# ROBOCO_VERSION=latest
2025-12-14 22:05:34 +01:00
# =============================================================================
# Data Persistence
# =============================================================================
# Set to a path on your NAS RAID array for durability
# Path to data directory on the host (MUST be absolute for Docker-in-Docker)
# ROBOCO_DATA_DIR=/volume1/roboco/data
# =============================================================================
2025-12-10 02:49:54 +01:00
# Application
2025-12-14 22:05:34 +01:00
# =============================================================================
2025-12-10 02:49:54 +01:00
ROBOCO_ENVIRONMENT=development
ROBOCO_DEBUG=true
2025-12-14 22:05:34 +01:00
# =============================================================================
2025-12-10 02:49:54 +01:00
# API Server
2025-12-14 22:05:34 +01:00
# =============================================================================
2025-12-10 02:49:54 +01:00
ROBOCO_HOST=0.0.0.0
ROBOCO_PORT=8000
2025-12-14 22:05:34 +01:00
# =============================================================================
2025-12-10 02:49:54 +01:00
# Database (PostgreSQL)
2025-12-14 22:05:34 +01:00
# =============================================================================
# For docker compose deployment, use container name:
# ROBOCO_DATABASE_HOST=roboco-postgres
# For local development:
2025-12-10 02:49:54 +01:00
ROBOCO_DATABASE_HOST=localhost
ROBOCO_DATABASE_PORT=5432
ROBOCO_DATABASE_USER=roboco
ROBOCO_DATABASE_PASSWORD=roboco
ROBOCO_DATABASE_NAME=roboco
ROBOCO_DATABASE_ECHO=false
2025-12-14 22:05:34 +01:00
# =============================================================================
2025-12-10 02:49:54 +01:00
# Redis
2025-12-14 22:05:34 +01:00
# =============================================================================
# For docker compose deployment, use container name:
# ROBOCO_REDIS_HOST=roboco-redis
# For local development:
2025-12-10 02:49:54 +01:00
ROBOCO_REDIS_HOST=localhost
ROBOCO_REDIS_PORT=6379
ROBOCO_REDIS_DB=0
# ROBOCO_REDIS_PASSWORD=
2025-12-14 22:05:34 +01:00
# =============================================================================
# RAG / Local LLM (Ollama + in-house pgvector engine)
2025-12-14 22:05:34 +01:00
# =============================================================================
# For docker compose use the container name (roboco-ollama); locally, localhost.
ROBOCO_OLLAMA_BASE_URL=http://localhost:11434
ROBOCO_LOCAL_LLM_BASE_URL=http://localhost:11434/v1
ROBOCO_LOCAL_LLM_MODEL=glm-5:cloud
ROBOCO_DEFAULT_EMBEDDING_MODEL=qwen3-embedding:0.6b
2025-12-10 02:49:54 +01:00
2025-12-14 22:05:34 +01:00
# =============================================================================
2025-12-10 02:49:54 +01:00
# Security
2025-12-14 22:05:34 +01:00
# =============================================================================
# Encryption key for git tokens at rest (Fernet). REQUIRED — the orchestrator
# refuses to start without it. Generate with:
# python -c 'from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())'
ROBOCO_ENCRYPTION_KEY=
2026-06-05 16:35:22 +02:00
# Agent auth: HMAC secret that signs X-Agent-Token. REQUIRED for docker compose.
# Generate with: python -c 'import secrets; print(secrets.token_hex(32))'
ROBOCO_AGENT_AUTH_SECRET=
# Secure mode. On a trusted LAN you can leave this false (header-trust mode).
# Set true to require every request to carry a valid token so an agent cannot
# spoof another agent's role. When true you MUST also set ROBOCO_PANEL_AGENT_TOKEN.
ROBOCO_AGENT_AUTH_REQUIRED=false
# The control panel's CEO token, injected by nginx in secure mode so the human
# UI keeps working without the browser holding the signing secret. Generate it
# (after setting ROBOCO_AGENT_AUTH_SECRET above) with: make panel-token
ROBOCO_PANEL_AGENT_TOKEN=
2025-12-10 02:49:54 +01:00
2025-12-14 22:05:34 +01:00
# =============================================================================
2025-12-10 02:49:54 +01:00
# CORS (comma-separated origins)
2025-12-14 22:05:34 +01:00
# =============================================================================
2025-12-10 02:49:54 +01:00
ROBOCO_CORS_ORIGINS=["http://localhost:3000","http://localhost:5173"]