All checks were successful
CI / update (push) Successful in 4m26s
The deployment server couldn't fetch transformer models at runtime due to restricted network access and permission errors writing to node_modules. Add a prebuild script to download models during build and document TRANSFORMERS_CACHE env var for configuring a shared writable cache path.
39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
# Database Configuration
|
|
MONGO_URL="mongodb://user:password@host:port/database?authSource=admin"
|
|
|
|
# Redis Cache Configuration (optional - falls back to direct DB queries if unavailable)
|
|
REDIS_HOST="localhost" # Redis server hostname
|
|
REDIS_PORT="6379" # Redis server port
|
|
|
|
# Authentication Secrets (runtime only - not embedded in build)
|
|
AUTHENTIK_ID="your-authentik-client-id"
|
|
AUTHENTIK_SECRET="your-authentik-client-secret"
|
|
|
|
# Static Configuration (embedded in build - OK to be public)
|
|
AUTHENTIK_ISSUER="https://sso.example.com/application/o/your-app/"
|
|
|
|
# File Storage
|
|
IMAGE_DIR="/path/to/static/files"
|
|
|
|
# Optional: Development Settings
|
|
# DEV_DISABLE_AUTH="true"
|
|
# ORIGIN="http://127.0.0.1:3000"
|
|
|
|
# Optional: Additional Configuration
|
|
# BEARER_TOKEN="your-bearer-token"
|
|
# COOKIE_SECRET="your-cookie-secret"
|
|
# PEPPER="your-pepper-value"
|
|
# ALLOW_REGISTRATION="1"
|
|
# AUTH_SECRET="your-auth-secret"
|
|
# USDA_API_KEY="your-usda-api-key"
|
|
|
|
# Translation Service (DeepL API)
|
|
DEEPL_API_KEY="your-deepl-api-key"
|
|
DEEPL_API_URL="https://api-free.deepl.com/v2/translate" # Use https://api.deepl.com/v2/translate for Pro
|
|
|
|
# AI Vision Service (Ollama for Alt Text Generation)
|
|
OLLAMA_URL="http://localhost:11434" # Local Ollama server URL
|
|
|
|
# HuggingFace Transformers Model Cache (for nutrition embedding models)
|
|
TRANSFORMERS_CACHE="/var/cache/transformers" # Must be writable by build and runtime user
|