pdf-accessibility/.env.example
Vadym Samoilenko a5784feda6 Address client feedback: WCAG badges, table grouping, retention, history UX, AI prompt ethics
- Issue 1: Recompute WCAG A/AA compliance badges after dismissing issues (JS +
  backend); exported reports now reflect updated pass/fail status
- Issue 2: Group document-wide table issues into collapsible cards with
  Dismiss All button; reduces noise for multi-table documents
- Issue 3: Split cleanup retention — uploads deleted after 24h, result/meta
  JSONs retained 30 days (RESULTS_RETENTION_HOURS env var, default 720h)
- Issue 4A: Library shows adjusted score when available (.adjusted.json preferred)
- Issue 4B: History page groups documents by retention countdown (red/yellow/green
  sections); adds 30-day retention banner
- Issue 5+6: AI prompt updated — describe people by role/action not appearance,
  use specific brand names; flags images with people for human review

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 10:51:10 +00:00

47 lines
1.8 KiB
Text

# Enterprise PDF Accessibility Checker - Environment Variables
# Copy this file to .env and fill in your API keys
# Anthropic Claude API Key (required for AI image analysis)
# Get your key from: https://console.anthropic.com/
ANTHROPIC_API_KEY=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
# Google Cloud Vision API (OPTIONAL - for enhanced image analysis)
# IMPORTANT: Comment out or remove lines you're not using!
#
# Option 1: Use credentials file path (UNCOMMENT and set path if using)
# GOOGLE_APPLICATION_CREDENTIALS=/path/to/your/google-credentials.json
# Option 2: Or use API key directly (UNCOMMENT and set key if using)
GOOGLE_API_KEY=AIzaSyDWVxBWiDTeECqapiUpbXJadrxqcoA9tus
# Note: You only need ONE of the Google options above, not both
# The credentials file method is recommended for production use
# Development mode - set to 'true' for localhost auth bypass
DEV_MODE=true
# Database (PostgreSQL) - used in Docker setup
DB_HOST=postgres
DB_PORT=5432
DB_NAME=pdf_checker
DB_USER=pdf_checker
DB_PASSWORD=change_me_in_production
# Cloud Run - PDF processing service
# Set this to your deployed Cloud Run URL (leave empty for local Python fallback)
CLOUD_RUN_URL=https://pdf-checker-bcb6ipdqka-uc.a.run.app
# Path to GCP service account key for authenticating to Cloud Run
GCP_SA_KEY_PATH=./pdf-api-invoker-key.json
# GCS bucket for page images
GCS_BUCKET_NAME=optical-pdf-images
# File retention
# Uploaded PDFs are deleted after RETENTION_HOURS (default 24h)
# Result/meta JSON files are kept for RESULTS_RETENTION_HOURS (default 720h = 30 days)
RETENTION_HOURS=24
RESULTS_RETENTION_HOURS=720
# Azure AD / MSAL Authentication
AZURE_TENANT_ID=e519c2e6-bc6d-4fdf-8d9c-923c2f002385
AZURE_CLIENT_ID=9079054c-9620-4757-a256-23413042f1ef
AZURE_REDIRECT_URI=https://ai-sandbox.oliver.solutions/pdf-accessibility