Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

2.9 KB
Raw Blame
# Cap Self-Hosting Environment Variables for Coolify
# Copy this file and fill in the values

# ===================
# REQUIRED VARIABLES
# ===================

# Public URL where Cap will be accessible (e.g., https://cap.yourdomain.com)
WEB_URL=https://cap.yourdomain.com

# 32-byte hex string for encrypting sensitive data
# Generate with: openssl rand -hex 32
DATABASE_ENCRYPTION_KEY=

# 32-byte secret for NextAuth sessions
# Generate with: openssl rand -hex 32
NEXTAUTH_SECRET=

# Secret for media server webhook authentication
# Generate with: openssl rand -hex 32
MEDIA_SERVER_WEBHOOK_SECRET=

# ===================
# DATABASE
# ===================

# MySQL password for the 'cap' user
MYSQL_PASSWORD=your-secure-mysql-password

# MySQL root password
MYSQL_ROOT_PASSWORD=your-secure-root-password

# ===================
# S3 / MinIO STORAGE
# ===================

# MinIO admin credentials
MINIO_ROOT_USER=capadmin
MINIO_ROOT_PASSWORD=your-secure-minio-password

# S3 bucket name
S3_BUCKET=cap

# Public URL for S3 access (should be accessible from the internet for video playback)
# For Coolify, this is typically your minio service URL
S3_PUBLIC_ENDPOINT=https://s3.yourdomain.com

# ===================
# EMAIL (OPTIONAL)
# ===================
# Without these, login links will appear in container logs

# Resend API key for sending emails
RESEND_API_KEY=

# Domain configured in Resend
RESEND_FROM_DOMAIN=

# ===================
# AI FEATURES (OPTIONAL)
# ===================

# For video transcription
ASSEMBLY_API_KEY=
# ASSEMBLY_BASE_URL=https://api.eu.assemblyai.com

# API keys for AI summaries, chat, and docs search. When AI_PROVIDER is not
# set, providers are auto-detected from whichever of these keys are present.
# Generation (titles/summaries/chapters/translation) prefers
# Groq -> OpenAI -> Anthropic; chat (support messenger, docs Ask AI) prefers
# Anthropic -> OpenAI -> Groq. Later providers are fallbacks.
GROQ_API_KEY=
OPENAI_API_KEY=
ANTHROPIC_API_KEY=

# Optionally pick the AI provider explicitly instead of auto-detecting.
# One of: assemblyai, openai, anthropic, groq, openai-compatible.
# - "assemblyai" reuses ASSEMBLY_API_KEY via the AssemblyAI LLM Gateway. It
#   is never auto-detected, so transcription-only setups don't incur LLM
#   charges unless you opt in here.
# - "openai-compatible" works with any OpenAI-compatible endpoint (Ollama,
#   OpenRouter, LM Studio, ...) and requires AI_BASE_URL and AI_MODEL.
# AI_MODEL / AI_CHAT_MODEL / AI_STREAM_MODEL override the models used for
# generation (titles/summaries/chapters/translation), support chat, and
# streaming docs search for the provider selected above.
# AI_PROVIDER=
# AI_MODEL=
# AI_CHAT_MODEL=
# AI_STREAM_MODEL=
# AI_BASE_URL=
# AI_API_KEY=

# ===================
# OAUTH (OPTIONAL)
# ===================

# Google OAuth
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

# Sign in with Apple
APPLE_CLIENT_ID=
APPLE_CLIENT_SECRET=