# Environment Configuration
# Copy this file to .env and update with your actual values

# Application URL & Settings
APP_URL=http://localhost
APP_NAME=ChatBud
APP_ENV=development
APP_DEBUG=false
SITE_NAME=ChatBud
DEFAULT_THEME=system

# Database Configuration
# Instructions:
# 1. If using MySQL: Create database and user
#    mysql -u root -p
#    CREATE DATABASE chatbud DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
#    CREATE USER 'chatbud_user'@'localhost' IDENTIFIED BY 'StrongPassword123';
#    GRANT ALL PRIVILEGES ON chatbud.* TO 'chatbud_user'@'localhost';
# 2. Update the credentials below
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=chatbud
DB_USERNAME=chatbud_user
DB_PASSWORD=StrongPassword123

# Email Configuration
# For Development: Use Mailtrap (https://mailtrap.io)
# 1. Sign up at https://mailtrap.io
# 2. Create an inbox
# 3. Go to Settings > Integrations > SMTP
# 4. Copy SMTP credentials below
# For Production: Use SendGrid, Mailgun, or your SMTP server
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=465
MAIL_USERNAME=your_mailtrap_username
MAIL_PASSWORD=your_mailtrap_password
MAIL_FROM_ADDRESS=noreply@chatbud.com
MAIL_FROM_NAME=ChatBud

# SendGrid API (alternative to SMTP)
SENDGRID_API_KEY=

# Mailgun API (alternative to SMTP)
MAILGUN_API_KEY=
MAILGUN_DOMAIN=

# Session Configuration
SESSION_DRIVER=database
SESSION_LIFETIME=2592000

# File Upload Configuration
FILE_UPLOAD_MAX_SIZE=52428800
FILE_UPLOAD_ALLOWED_TYPES=jpg,jpeg,png,gif,webp,mp4,webm,mov,avi,mp3,wav,m4a
FILE_UPLOAD_PATH=public/uploads

# Security Configuration
PASSWORD_MIN_LENGTH=8
PASSWORD_REQUIRE_UPPERCASE=true
PASSWORD_REQUIRE_LOWERCASE=true
PASSWORD_REQUIRE_NUMBERS=true
PASSWORD_REQUIRE_SPECIAL=false

# API Configuration
API_BASE_URL=http://localhost
API_TIMEOUT=30
API_RATE_LIMIT=100
API_RATE_LIMIT_WINDOW=3600

# Feature Flags
ENABLE_REGISTRATION=true
ENABLE_EMAIL_VERIFICATION=true
ENABLE_PASSWORD_RESET=true
ENABLE_NOTIFICATIONS=true
ENABLE_DIRECT_MESSAGES=true
ENABLE_USER_BLOCKING=true
