This ensures the API uses the same protocol and domain as the frontend, preventing mixed content blocking in staging/production environments. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
# Database Configuration
|
|
DATABASE_URL="postgresql://username:password@localhost:5432/desa-darmasaba?schema=public"
|
|
|
|
# Seafile Configuration (File Storage)
|
|
SEAFILE_TOKEN=your_seafile_token
|
|
SEAFILE_REPO_ID=your_seafile_repo_id
|
|
SEAFILE_URL=https://your-seafile-instance.com
|
|
SEAFILE_PUBLIC_SHARE_TOKEN=your_seafile_public_share_token
|
|
|
|
# Upload Configuration
|
|
WIBU_UPLOAD_DIR=uploads
|
|
WIBU_DOWNLOAD_DIR=./download
|
|
|
|
# Application Configuration
|
|
# IMPORTANT: For staging/production, set this to your actual domain
|
|
# Local development: NEXT_PUBLIC_BASE_URL=http://localhost:3000
|
|
# Staging: NEXT_PUBLIC_BASE_URL=https://desa-darmasaba-stg.wibudev.com
|
|
# Production: NEXT_PUBLIC_BASE_URL=https://your-production-domain.com
|
|
# Or use relative URL '/' for automatic protocol/domain detection (recommended)
|
|
NEXT_PUBLIC_BASE_URL=/
|
|
|
|
# Email Configuration (for notifications/subscriptions)
|
|
EMAIL_USER=your_email@gmail.com
|
|
EMAIL_PASS=your_email_app_password
|
|
|
|
# Session Configuration
|
|
BASE_SESSION_KEY=your_session_key_generate_secure_random_string
|
|
BASE_TOKEN_KEY=your_jwt_secret_key_generate_secure_random_string
|
|
|
|
# Telegram Bot Configuration (for notifications)
|
|
BOT_TOKEN=your_telegram_bot_token
|
|
CHAT_ID=your_telegram_chat_id
|
|
|
|
# Session Password (for iron-session)
|
|
SESSION_PASSWORD="your_session_password_min_32_characters_long_secure"
|
|
|
|
# ElevenLabs API Key (for TTS features - optional)
|
|
ELEVENLABS_API_KEY=your_elevenlabs_api_key
|
|
|
|
# Environment (optional, defaults to development)
|
|
# NODE_ENV=development
|