← back to Rentv Adintel

.env.example

59 lines

# RENTV Advertiser Intelligence — environment (spec §30)
# Copy to .env and fill in. Secrets are server-only and redacted from logs.

NEXT_PUBLIC_APP_NAME="RENTV Advertiser Intelligence"
NEXT_PUBLIC_SIMPLE_VIEW_DEFAULT="true"
APP_BASE_URL="http://localhost:9814"
PORT="9814"
AUTH_SECRET="replace-me"

# Postgres — house convention is the local /tmp socket, db rentv_advertisers.
# DATABASE_URL overrides the socket settings when set (prod/CI).
DATABASE_URL=""
PGHOST="/tmp"
PGDATABASE="rentv_advertisers"

REDIS_URL="redis://localhost:6379"
OBJECT_STORAGE_DRIVER="local"
OBJECT_STORAGE_LOCAL_DIR="./data/assets"

# Search provider — manual by default. Never scrape result HTML (§9).
SEARCH_PROVIDER="manual"
GOOGLE_CSE_API_KEY=""
GOOGLE_CSE_ID=""
BRAVE_SEARCH_API_KEY=""
BING_SEARCH_API_KEY=""
SERPER_API_KEY=""

# Google Analytics Data API (GA4) + Search Console — official APIs only (§17-18).
GOOGLE_SERVICE_ACCOUNT_JSON_BASE64=""
GA4_PROPERTY_ID=""
GSC_SITE_URL=""

# Optional Google Ads (§19) — off unless configured.
GOOGLE_ADS_ENABLED="false"
GOOGLE_ADS_DEVELOPER_TOKEN=""
GOOGLE_ADS_CUSTOMER_ID=""
GOOGLE_ADS_LOGIN_CUSTOMER_ID=""
GOOGLE_ADS_CLIENT_ID=""
GOOGLE_ADS_CLIENT_SECRET=""
GOOGLE_ADS_REFRESH_TOKEN=""

# Gmail import (§16) — admin-only, disabled by default.
GMAIL_IMPORT_ENABLED="false"
GMAIL_CLIENT_ID=""
GMAIL_CLIENT_SECRET=""
GMAIL_REFRESH_TOKEN=""
GMAIL_IMPORT_QUERY=""

# Optional local LLM extraction (§16) — Ollama, no hosted model required.
OLLAMA_ENABLED="false"
OLLAMA_BASE_URL="http://127.0.0.1:11434"
OLLAMA_MODEL="qwen2.5:7b"

# Research crawler defaults — conservative, descriptive UA with admin contact.
CRAWLER_USER_AGENT="RENTV-Advertiser-Research/1.0 (+admin@rentv.com)"
ALLOW_AUTOMATED_PUBLIC_WEB_RESEARCH="false"
DEFAULT_REQUESTS_PER_MINUTE="6"
EXPORT_MAX_ROWS="100000"