# Environment configuration for nginx subpath deployment
# Copy this file to .env and configure for your deployment
# Essential Configuration - Required
AUTH_TOKEN=your-secret-token-here
DB_PASSWORD=your-database-password-here
# Base Path Configuration for Subpath Deployment
#
# Choose ONE of the following approaches:
# Option 1: Full URL (Recommended for production)
# The application extracts the path portion (/md) and uses it for all URL generation
BASE_URL=http://localhost/md
# Option 2: Path only (Alternative)
# BASE_PATH=/md
# Examples for different subpaths:
# BASE_URL=http://localhost/articles
# BASE_URL=https://example.com/md
# BASE_URL=https://docs.company.com/wiki
# BASE_PATH=/articles
# BASE_PATH=/app/docs
# BASE_PATH=/knowledge-base
# Application Settings (Optional)
PORT=5000
NODE_ENV=production
MCP_SERVER_ENABLED=true
# Database Settings (Defaults work for Docker Compose)
DB_HOST=postgres
DB_PORT=5432
DB_NAME=article_manager
DB_USER=article_user
DB_SSL=false
DB_MAX_CONNECTIONS=20
# Semantic Search (Optional)
SEMANTIC_SEARCH_ENABLED=false
EMBEDDING_PROVIDER=ollama
EMBEDDING_MODEL=nomic-embed-text
OLLAMA_BASE_URL=http://host.docker.internal:11434
# For OpenAI embeddings:
# SEMANTIC_SEARCH_ENABLED=true
# EMBEDDING_PROVIDER=openai
# EMBEDDING_MODEL=text-embedding-3-small
# OPENAI_API_KEY=your-openai-api-key
# Deployment Notes:
# 1. The BASE_URL/BASE_PATH is injected into the frontend at runtime
# 2. Same Docker image works for any base path without rebuilding
# 3. Nginx configuration should rewrite URLs to remove the base path
# 4. Application automatically handles all URL generation with the base path
</content>