BarazoBarazo Docs
Self-hosting

Configuration

Every Barazo environment variable, grouped by area, with whether it's required, its default, and what it does.

Barazo is configured through environment variables in your .env file. This page lists them by area. The ones you must set to get a forum running are covered in Installation. This page is the full reference.

Community identity

VariableRequiredDefaultDescription
COMMUNITY_NAMEYes"My Community"Display name for your forum
COMMUNITY_DOMAINYesNoneYour domain (e.g. forum.example.com). Caddy uses it for SSL.
COMMUNITY_DIDNoNoneAT Protocol DID. Created automatically during first-run setup.
COMMUNITY_MODENosinglesingle for one community, global for aggregator mode
HOSTING_MODENoselfhostedselfhosted or saas

Database (PostgreSQL)

VariableRequiredDefaultDescription
POSTGRES_USERYesNonePostgreSQL superuser name
POSTGRES_PASSWORDYesNonePostgreSQL superuser password
POSTGRES_DBYesNoneDatabase name
POSTGRES_PORTNo5432Host port mapping (dev compose only)
DATABASE_URLYesNoneAPI connection string. Format: postgresql://user:pass@postgres:5432/dbname

Cache (Valkey)

VariableRequiredDefaultDescription
VALKEY_PASSWORDProd: YesNoneValkey password. Dangerous commands are disabled.
VALKEY_PORTNo6379Host port mapping (dev compose only)
VALKEY_URLNoAutoAPI connection URL. Built automatically in compose.

AT Protocol

VariableRequiredDefaultDescription
RELAY_URLNowss://bsky.networkBluesky relay for the firehose
TAP_ADMIN_PASSWORDYesNoneTap admin API password
TAP_PORTNo2480Host port mapping (dev compose only)
OAUTH_CLIENT_IDYesNoneYour forum's public URL (e.g. https://forum.example.com)
OAUTH_REDIRECT_URIYesNoneOAuth callback (e.g. https://forum.example.com/api/auth/callback)

Frontend

VariableRequiredDefaultDescription
API_INTERNAL_URLNohttp://localhost:3000Internal API URL for server-side rendering. Set to http://barazo-api:3000 in Docker.
NEXT_PUBLIC_SITE_URLYesNonePublic site URL (e.g. https://forum.example.com)

Image versions

VariableRequiredDefaultDescription
BARAZO_API_VERSIONNolatestAPI image tag. Pin to a version in production.
BARAZO_WEB_VERSIONNolatestWeb image tag. Pin to a version in production.
VariableRequiredDefaultDescription
EMBEDDING_URLNoNoneEnables semantic search. Example: http://ollama:11434/api/embeddings
AI_EMBEDDING_DIMENSIONSNo768Vector dimensions. Must match your embedding model.

Full-text search works with no configuration. Setting EMBEDDING_URL adds semantic search on top.

Encryption

VariableRequiredDefaultDescription
AI_ENCRYPTION_KEYConditionalNoneAES-256-GCM key that encrypts bring-your-own-key API keys at rest. Required if BYOK features are used. Generate: openssl rand -base64 32

Cross-posting

VariableRequiredDefaultDescription
FEATURE_CROSSPOST_FRONTPAGENofalseEnable Frontpage cross-posting. Bluesky cross-posting is always available.

Plugins

VariableRequiredDefaultDescription
PLUGINS_ENABLEDNotrueSet to false to disable all plugins
PLUGIN_REGISTRY_URLNohttps://registry.npmjs.orgnpm registry for plugin installation

Monitoring

VariableRequiredDefaultDescription
GLITCHTIP_DSNNoNoneGlitchTip / Sentry DSN for error reporting
LOG_LEVELNoinfoPino level: trace, debug, info, warn, error, fatal

On this page