- Updated database configuration to switch from SQLite to PostgreSQL, including changes to alembic.ini, Docker Compose, and environment settings. - Refactored application code to utilize PostgreSQL database adapters, ensuring compatibility with the new database structure. - Enhanced API routes and data handling to support the new database, including adjustments in data models and query logic. - Introduced new job processing mechanisms for full synchronization of AMO CRM entities, leveraging FastStream for background tasks. - Improved logging and error handling across the application to facilitate better monitoring and debugging. - Removed obsolete SQLite adapter files and migrations, streamlining the project structure for PostgreSQL integration.
21 lines
501 B
Plaintext
21 lines
501 B
Plaintext
# Database (PostgreSQL)
|
|
DATABASE_URL=postgresql://amo_user:amo_password@localhost:5432/amo_data
|
|
|
|
# AMO CRM API
|
|
AMO_CRM_DOMAIN=wecheap.amocrm.ru
|
|
AMO_CRM_ACCESS_TOKEN=your-longterm-access-token
|
|
|
|
# Google Sheets API
|
|
GOOGLE_SERVICE_ACCOUNT_FILE=path/to/service-account.json
|
|
GOOGLE_SCOPES=https://www.googleapis.com/auth/spreadsheets
|
|
|
|
# Redis (for FastStream message broker)
|
|
REDIS_URL=redis://localhost:6379/0
|
|
|
|
# API Settings
|
|
API_V1_STR=/api/v1
|
|
API_BASE_URL=http://localhost:8000
|
|
|
|
# Logging
|
|
LOG_LEVEL=INFO
|