🚀 CRM Files Migration & Real-time Features
✨ Features: - Migrated ALL files to new S3 structure (Projects, Contacts, Accounts, HelpDesk, Invoice, etc.) - Added Nextcloud folder buttons to ALL modules - Fixed Nextcloud editor integration - WebSocket server for real-time updates - Redis Pub/Sub integration - File path manager for organized storage - Redis caching for performance (Functions.php) 📁 New Structure: Documents/Project/ProjectName_ID/file_docID.ext Documents/Contacts/FirstName_LastName_ID/file_docID.ext Documents/Accounts/AccountName_ID/file_docID.ext 🔧 Technical: - FilePathManager for standardized paths - S3StorageService integration - WebSocket server (Node.js + Docker) - Redis cache for getBasicModuleInfo() - Predis library for Redis connectivity 📝 Scripts: - Migration scripts for all modules - Test pages for WebSocket/SSE/Polling - Documentation (MIGRATION_*.md, REDIS_*.md) 🎯 Result: 15,000+ files migrated successfully!
This commit is contained in:
75
erv_ticket/.env.example
Normal file
75
erv_ticket/.env.example
Normal file
@@ -0,0 +1,75 @@
|
||||
# ============================================
|
||||
# КОНФИГУРАЦИЯ ERV TICKET - ОБРАЗЕЦ
|
||||
# ============================================
|
||||
#
|
||||
# Скопируйте этот файл как .env и заполните реальными значениями
|
||||
# Команда: cp .env.example .env
|
||||
|
||||
# ============================================
|
||||
# БАЗА ДАННЫХ
|
||||
# ============================================
|
||||
DB_HOST=localhost
|
||||
DB_NAME=your_database_name
|
||||
DB_USER=your_database_user
|
||||
DB_PASSWORD=your_database_password
|
||||
|
||||
# ============================================
|
||||
# SMS СЕРВИС (SigmaSMS)
|
||||
# ============================================
|
||||
SMS_API_URL=https://online.sigmasms.ru/api/
|
||||
SMS_LOGIN=your_sms_login
|
||||
SMS_PASSWORD=your_sms_password
|
||||
SMS_TOKEN=your_sms_api_token
|
||||
SMS_SENDER=YourSender
|
||||
|
||||
# ============================================
|
||||
# EMAIL (SMTP)
|
||||
# ============================================
|
||||
MAIL_HOST=smtp.example.com
|
||||
MAIL_PORT=465
|
||||
MAIL_USERNAME=your@email.com
|
||||
MAIL_PASSWORD=your_email_password
|
||||
MAIL_FROM_EMAIL=noreply@example.com
|
||||
MAIL_FROM_NAME=Your Application
|
||||
MAIL_TO_1=recipient1@example.com
|
||||
MAIL_TO_2=recipient2@example.com
|
||||
|
||||
# ============================================
|
||||
# CRM VTIGER
|
||||
# ============================================
|
||||
CRM_WEBFORM_URL=https://your-crm.com/modules/Webforms/capture.php
|
||||
CRM_PUBLIC_ID=your_public_id
|
||||
CRM_SESSION_TOKEN=sid:your_session_token
|
||||
|
||||
# ============================================
|
||||
# ВНЕШНИЕ API
|
||||
# ============================================
|
||||
DADATA_TOKEN=your_dadata_token
|
||||
DADATA_API_URL=https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/party
|
||||
IP_API_URL=http://ip-api.com/json/
|
||||
|
||||
# ============================================
|
||||
# КОНТРАГЕНТ
|
||||
# ============================================
|
||||
CONTRACTOR_NAME=Your Company Name
|
||||
CONTRACTOR_INN=1234567890
|
||||
CONTRACTOR_OGRN=1234567890123
|
||||
CONTRACTOR_ADDRESS=Your company address
|
||||
CONTRACTOR_EMAIL=info@company.com
|
||||
CONTRACTOR_PHONE=79991234567
|
||||
CONTRACTOR_WEBSITE=https://company.com/
|
||||
|
||||
# ============================================
|
||||
# НАСТРОЙКИ ПРИЛОЖЕНИЯ
|
||||
# ============================================
|
||||
DEBUG_MODE=true
|
||||
APP_ENV=development
|
||||
SUCCESS_REDIRECT_URL=https://your-success-page.com/ok
|
||||
|
||||
# ============================================
|
||||
# БЕЗОПАСНОСТЬ
|
||||
# ============================================
|
||||
RATE_LIMIT_SMS_MAX=3
|
||||
RATE_LIMIT_SMS_WINDOW=300
|
||||
RATE_LIMIT_FORM_MAX=5
|
||||
RATE_LIMIT_FORM_WINDOW=3600
|
||||
Reference in New Issue
Block a user