Initial commit: Эфир мессенджер

This commit is contained in:
2026-04-06 14:57:36 +03:00
commit ff93679b6d
50 changed files with 5642 additions and 0 deletions

21
.env.example Normal file
View File

@@ -0,0 +1,21 @@
# Server Configuration
SERVER_PORT=8080
ENVIRONMENT=development
# Database
DB_DRIVER=sqlite
DB_PATH=./messenger.db
# JWT Authentication
JWT_SECRET=your-super-secret-jwt-key-change-in-production-32bytes
JWT_EXPIRY_HOURS=720
# Encryption (32 bytes for AES-256)
ENCRYPTION_KEY=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
# File Storage
STORAGE_PATH=./storage/attachments
MAX_FILE_SIZE_MB=20
# CORS
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:8080