Glozr docs

Operate

Environment variables

Glozr is configured through environment variables. This page lists every variable the app reads at boot, grouped by subsystem. Variables not set fall back to safe defaults where possible; missing required keys are surfaced in the platform admin's Site Health pill.

Core application

KeyDefaultDescription
APP_NAMEGlozrDisplay name used in emails and the dashboard.
APP_ENVproductionlocal, staging, or production.
APP_KEY32-byte base64 encryption key. Generate with php artisan key:generate.
APP_DEBUGfalseNever enable in production — leaks stack traces.
APP_URLPublic HTTPS URL. Used to sign assets and build absolute links.
APP_LOCALEenDefault UI locale. Falls back per visitor via Accept-Language.
APP_TIMEZONEUTCServer-side timezone for scheduled jobs.

Database & cache

KeyDefaultDescription
DB_CONNECTIONpgsqlPostgres is the supported driver in production.
DB_HOST127.0.0.1Postgres hostname.
DB_PORT5432Postgres port.
DB_DATABASEDatabase name.
DB_USERNAMEDB user.
DB_PASSWORDDB password.
REDIS_HOST127.0.0.1Redis hostname.
REDIS_PORT6379Redis port.
REDIS_PASSWORDOptional password.
CACHE_STOREredisCache driver.
SESSION_DRIVERredisSession driver.
QUEUE_CONNECTIONredisQueue driver. Horizon expects redis.

LLM providers

At least one provider must be configured. The system auto-selects based on available credentials, in the order: Cloudflare Workers AI → OpenAI → OpenRouter.

KeyDescription
CLOUDFLARE_ACCOUNT_IDCloudflare account hosting Workers AI.
CLOUDFLARE_API_TOKENScoped token with Workers AI permissions.
CLOUDFLARE_LLM_MODELDefault @cf/meta/llama-3.3-70b-instruct-fp8-fast.
CLOUDFLARE_EMBED_MODELDefault @cf/baai/bge-base-en-v1.5.
OPENAI_API_KEYFallback provider.
OPENAI_LLM_MODELDefault gpt-4o-mini.
OPENAI_EMBED_MODELDefault text-embedding-3-small.
OPENROUTER_API_KEYOptional third-tier fallback.

Vector store

KeyDescription
VECTOR_DRIVERvectorize or qdrant.
VECTORIZE_INDEXVectorize index name.
VECTORIZE_DIMOptional explicit dim; auto-detected from the embedding model if omitted.
QDRANT_URLQdrant base URL.
QDRANT_API_KEYOptional API key.
QDRANT_COLLECTIONDefault glozr.

Note. The Vectorize index is provisioned at the dim active when it was first created and cannot be resized in place. Switching embedding models with a different dim requires re-provisioning — run php artisan vector:rebuild-index.

Web crawler

KeyDefaultDescription
CRAWL_DRIVERcloudflarecloudflare, browserless, or http.
CRAWL_MAX_PAGES_PER_SOURCE500Hard cap per source.
CRAWL_MAX_CONCURRENCY4Parallel page fetches per source.
CRAWL_USER_AGENTGlozrBot/1.0Identifies the crawler.
BROWSERLESS_URLRequired when using Browserless fallback.
BROWSERLESS_TOKENToken for Browserless.

RAG tuning

KeyDefaultDescription
RAG_TOP_K6Chunks pulled before rerank.
RAG_FAN_OUT3Sub-queries per turn.
RAG_RERANKtrueToggle cross-encoder rerank.
RAG_CONFIDENCE_DEFAULTWorkspace default if not set per agent. 0.5 for bge-base, 0.78 for OpenAI.
RAG_PAGE_BOOST0.15Score bump for chunks on the current page.

Billing & payments

KeyDescription
STRIPE_KEYPublishable key.
STRIPE_SECRETSecret key.
STRIPE_WEBHOOK_SECRETWebhook signing secret.
CASHIER_CURRENCYDefault usd.

Mail

KeyDefaultDescription
MAIL_MAILERsmtpDriver.
MAIL_HOSTSMTP host.
MAIL_PORT587SMTP port.
MAIL_USERNAMEUsername.
MAIL_PASSWORDPassword.
MAIL_FROM_ADDRESS[email protected]Default sender.
MAIL_FROM_NAMEGlozrSender display name.

Object storage

KeyDescription
FILESYSTEM_DISKs3 in production.
AWS_ACCESS_KEY_IDAccess key (also accepts R2 keys).
AWS_SECRET_ACCESS_KEYSecret.
AWS_DEFAULT_REGIONRegion (R2 uses auto).
AWS_BUCKETBucket name.
AWS_ENDPOINTSet for R2 / non-AWS S3.
AWS_USE_PATH_STYLE_ENDPOINTtrue for R2.

Realtime (Reverb)

KeyDescription
BROADCAST_CONNECTIONreverb.
REVERB_APP_IDApp identifier.
REVERB_APP_KEYPublic key, exposed to clients.
REVERB_APP_SECRETServer secret.
REVERB_HOSTPublic hostname.
REVERB_PORT443 behind a TLS proxy.
REVERB_SCHEMEhttps.

Observability

KeyDescription
SENTRY_LARAVEL_DSNSentry DSN; leave blank to disable.
SENTRY_TRACES_SAMPLE_RATETrace sampling rate, 0.01.0.
OTEL_EXPORTER_OTLP_ENDPOINTOTLP collector URL; blank disables tracing.
OTEL_SERVICE_NAMEDefault glozr.

OAuth integrations

KeyDescription
NOTION_CLIENT_ID / NOTION_CLIENT_SECRETNotion source connector.
GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRETGoogle Drive / Docs connector.

Admin overrides

Many sensitive credentials — Stripe keys, mail SMTP, OAuth client secrets — can be set or overridden from the platform admin's App Settings page without redeploying. Values stored there take precedence over the matching env vars and are encrypted at rest.