Files
MoneyFlix/crm/config.env.example
T
1sonhador 9d43854277 feat: Initial MoneyFlix project setup
- Created separate MoneyFlix project directory
- Copied Node.js redirector from production server
- Added CRM PHP code (Redirects module, Core classes, Config, Routes, Views)
- Created comprehensive documentation (README_MONEYFLIX.md)
- Added sync script to keep CRM code updated (sync-from-crm.sh)
- Configured .gitignore for Node.js and PHP
- Set up proper project structure for multi-client isolation

This separates MoneyFlix from the main CRM to avoid confusion
between different client systems and provides a dedicated
environment for MoneyFlix-specific development and maintenance.
2025-10-03 12:09:41 +01:00

102 lines
4.0 KiB
Bash

# BitReport CRM - Configuração de Ambiente
# Copia este ficheiro para .env e ajusta as configurações
# =============================================================================
# CONFIGURAÇÃO DA BASE DE DADOS
# =============================================================================
# Database Configuration
DB_HOST=localhost
DB_PORT=8889
DB_NAME=crm
DB_USER=root
DB_PASS=root
DB_CHARSET=utf8mb4
DB_SOCKET=/Applications/MAMP/tmp/mysql/mysql.sock
# Connection Profiles (New Array Format - Recommended)
# Format: DB_PROFILES[profile_name] = host:port:username:password:database:charset:socket
DB_PROFILES[default] = localhost:8889:root:root:crm:utf8mb4:/Applications/MAMP/tmp/mysql/mysql.sock
DB_PROFILES[importer] = localhost:8889:root:root:wdmi_importer:utf8mb4:/Applications/MAMP/tmp/mysql/mysql.sock
DB_PROFILES[xpto] = remote.server.com:3306:user:pass:xpto_db:utf8mb4
# Legacy Format (Still Supported)
# DB_PROFILES=default:localhost:8889:root:root:crm:utf8mb4:/Applications/MAMP/tmp/mysql/mysql.sock,importer:localhost:8889:root:root:wdmi_importer:utf8mb4:/Applications/MAMP/tmp/mysql/mysql.sock,xpto:remote.server.com:3306:user:pass:xpto_db:utf8mb4
# =============================================================================
# CONFIGURAÇÃO DA APLICAÇÃO
# =============================================================================
APP_NAME=BitReport CRM
APP_ENV=development
APP_DEBUG=true
APP_URL=http://localhost:8888
APP_TIMEZONE=Europe/Lisbon
APP_LOCALE=pt
# =============================================================================
# CONFIGURAÇÃO DE SEGURANÇA
# =============================================================================
APP_KEY=base64:your-secret-key-here
SESSION_DRIVER=file
SESSION_LIFETIME=120
# =============================================================================
# CONFIGURAÇÃO DE EMAIL
# =============================================================================
MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=[email protected]
MAIL_PASSWORD=your-app-password
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=[email protected]
MAIL_FROM_NAME="${APP_NAME}"
# =============================================================================
# CONFIGURAÇÃO DE LOGS
# =============================================================================
LOG_CHANNEL=stack
LOG_LEVEL=debug
# =============================================================================
# CONFIGURAÇÃO DE CACHE
# =============================================================================
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
# =============================================================================
# CONFIGURAÇÃO DE ARMAZENAMENTO
# =============================================================================
FILESYSTEM_DISK=local
STORAGE_PATH=/storage
# =============================================================================
# CONFIGURAÇÃO DE APIs EXTERNAS
# =============================================================================
# CoinMarketCap API para dados de criptomoedas
COINMARKETCAP_API_KEY=your-coinmarketcap-api-key-here
# Outras APIs (exemplos)
# GOOGLE_MAPS_API_KEY=your-google-maps-key
# STRIPE_API_KEY=your-stripe-key
# PAYPAL_CLIENT_ID=your-paypal-client-id
# =============================================================================
# CONFIGURAÇÃO DE DESENVOLVIMENTO
# =============================================================================
# Descomenta para ativar debug detalhado
# DEBUG_MODE=true
# Descomenta para mostrar erros SQL
# SQL_DEBUG=true
# =============================================================================
# CONFIGURAÇÃO DE PRODUÇÃO
# =============================================================================
# Para produção, altera estas configurações:
# APP_ENV=production
# APP_DEBUG=false
# APP_URL=https://your-domain.com
# DB_HOST=your-production-db-host
# DB_NAME=your-production-db-name
# DB_USER=your-production-db-user
# DB_PASS=your-production-db-password