Delete Account (Plan #2): - DELETE /api/auth/account/ with password or "DELETE" confirmation - Cascade delete across 15+ tables in correct FK order - Auth provider detection (email/apple/google) for /auth/me/ - File cleanup after account deletion - Handler + repository tests (12 tests) Encryption at Rest (Plan #3): - AES-256-GCM envelope encryption (per-file DEK wrapped by KEK) - Encrypt on upload, auto-decrypt on serve via StorageService.ReadFile() - MediaHandler serves decrypted files via c.Blob() - TaskService email image loading uses ReadFile() - cmd/migrate-encrypt CLI tool with --dry-run for existing files - Encryption service + storage service tests (18 tests)
64 lines
1.8 KiB
Plaintext
64 lines
1.8 KiB
Plaintext
# Server Settings
|
|
PORT=8000
|
|
DEBUG=true
|
|
ALLOWED_HOSTS=localhost,127.0.0.1
|
|
TIMEZONE=UTC
|
|
SECRET_KEY=your-secret-key-here-change-this-in-production
|
|
|
|
# Database Settings (PostgreSQL)
|
|
POSTGRES_DB=honeydue
|
|
POSTGRES_USER=postgres
|
|
POSTGRES_PASSWORD=change-this-secure-password
|
|
DB_HOST=localhost
|
|
DB_PORT=5432
|
|
DB_SSLMODE=disable
|
|
DB_MAX_OPEN_CONNS=25
|
|
DB_MAX_IDLE_CONNS=10
|
|
DB_MAX_LIFETIME=600s
|
|
|
|
# Redis Settings
|
|
REDIS_URL=redis://localhost:6379/0
|
|
REDIS_DB=0
|
|
|
|
# Email Settings (SMTP)
|
|
EMAIL_HOST=smtp.gmail.com
|
|
EMAIL_PORT=587
|
|
EMAIL_USE_TLS=true
|
|
EMAIL_HOST_USER=your-email@gmail.com
|
|
EMAIL_HOST_PASSWORD=your-app-password
|
|
DEFAULT_FROM_EMAIL=honeyDue <noreply@honeyDue.treytartt.com>
|
|
|
|
# APNs Settings (iOS Push Notifications)
|
|
# Direct APNs integration - no external push server needed
|
|
APNS_AUTH_KEY_PATH=/path/to/AuthKey_XXXXXX.p8
|
|
APNS_AUTH_KEY_ID=XXXXXXXXXX
|
|
APNS_TEAM_ID=XXXXXXXXXX
|
|
APNS_TOPIC=com.tt.honeyDue
|
|
APNS_PRODUCTION=false # Set to true for production APNs, false for sandbox
|
|
|
|
# FCM Settings (Android Push Notifications)
|
|
# Direct FCM integration using legacy HTTP API
|
|
FCM_SERVER_KEY=your-firebase-server-key
|
|
|
|
# Worker Settings (Background Jobs - UTC hours)
|
|
TASK_REMINDER_HOUR=14
|
|
OVERDUE_REMINDER_HOUR=15
|
|
DAILY_DIGEST_HOUR=3
|
|
|
|
# Storage Settings (File Uploads)
|
|
STORAGE_UPLOAD_DIR=./uploads
|
|
STORAGE_BASE_URL=/uploads
|
|
STORAGE_MAX_FILE_SIZE=10485760
|
|
STORAGE_ALLOWED_TYPES=image/jpeg,image/png,image/gif,image/webp,application/pdf
|
|
# 64-char hex key for file encryption at rest. Generate with: openssl rand -hex 32
|
|
STORAGE_ENCRYPTION_KEY=
|
|
|
|
# Feature Flags (Kill Switches)
|
|
# Set to false to disable. All default to true (enabled).
|
|
FEATURE_PUSH_ENABLED=true
|
|
FEATURE_EMAIL_ENABLED=true
|
|
FEATURE_WEBHOOKS_ENABLED=true
|
|
FEATURE_ONBOARDING_EMAILS_ENABLED=true
|
|
FEATURE_PDF_REPORTS_ENABLED=true
|
|
FEATURE_WORKER_ENABLED=true
|