- Enforce axum best practices across all 13 workspace crates (max 200 LOC/file, no comments, no unwrap, clean architecture) - Fix domain→infrastructure dependency inversions in imphnen-iam and imphnen-dimentorin - Extract imphnen-storage (MinIO) and imphnen-email (Lettre) as standalone crates - Centralize all config in ENV struct: CDN_URL, CORS_ALLOWED_ORIGINS - Centralize SMTP through imphnen-email; remove dead HackathonConfig - Centralize database: QR crate now shares main DB pool (single DATABASE_URL) - Rename QR users table to qr_users to avoid collision with main users table - Merge imphnen-qr into imphnen-cms/src/qr (13 crates, down from 14) - Restructure imphnen-hackathon flat modules into clean architecture - Remove all stale env vars from .env.example (SurrealDB, QR_JWT, Hackathon infra) - Fix Dockerfile to include all current workspace crates - Bump all crate versions 0.2.0 → 0.3.0 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
964 B
Bash
34 lines
964 B
Bash
RUST_ENV=development
|
|
RUST_LOG=debug
|
|
PORT=4099
|
|
ACCESS_TOKEN_SECRET=your-access-token-secret-key-here
|
|
REFRESH_TOKEN_SECRET=your-refresh-token-secret-key-here
|
|
SMTP_EMAIL=your-email@example.com
|
|
SMTP_PASSWORD=your-smtp-password
|
|
SMTP_NAME="Your App Name"
|
|
SMTP_HOST=smtp.gmail.com
|
|
REDISDB_URL=localhost
|
|
FE_URL=http://localhost
|
|
MINIO_ENDPOINT=http://localhost:9000
|
|
MINIO_BUCKET_NAME=default_bucket
|
|
MINIO_ACCESS_KEY=minioadmin
|
|
MINIO_SECRET_KEY=minioadmin
|
|
MINIO_SECURE=false
|
|
|
|
GOOGLE_CLIENT_ID="your_google_client_id"
|
|
GOOGLE_CLIENT_SECRET="your_google_client_secret"
|
|
POOL_SIZE=10
|
|
CONNECT_TIMEOUT=30
|
|
IDLE_TIMEOUT=60
|
|
MAX_LIFETIME=1800
|
|
STATEMENT_TIMEOUT=30000
|
|
IDLE_IN_TRANSACTION_SESSION_TIMEOUT=60000
|
|
SSLMODE=require
|
|
RETRY_ATTEMPTS=3
|
|
RETRY_DELAY=1
|
|
GOOGLE_REDIRECT_URL=http://localhost:8000/api/v1/auth/google/callback
|
|
|
|
CDN_URL=https://cdn.asepharyana.tech
|
|
CORS_ALLOWED_ORIGINS=http://localhost:3000,https://gacha.imphnen.dev,https://imphnen.dev,https://dimentorin.imphnen.dev
|
|
|