- Remove hardcoded minioadmin/minioadmin_secret fallback from docker-compose.yml, require MINIO_ACCESS_KEY/MINIO_SECRET_KEY env vars (fail-fast with :? syntax) - Align docker-compose.yml env var names with .env.example (MINIO_ACCESS_KEY/SECRET_KEY) - Update CI e2e workflow to use GitHub vars with non-default fallbacks - Update .env.test to use non-default test credentials - Add @aws-sdk/s3-request-presigner and getPresignedUploadUrl() method to MinioMediaStorageService for properly signed client-side uploads - Remove hardcoded credentials from dev-environment docs Co-Authored-By: Paperclip <noreply@paperclip.ing>
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
# =============================================================================
|
|
# GoodGo Platform — Test Environment Variables
|
|
# Used by E2E tests (Playwright globalSetup loads this automatically)
|
|
# =============================================================================
|
|
|
|
# Test database — separate from development DB for isolation
|
|
DATABASE_URL=postgresql://goodgo:goodgo_secret@localhost:5432/goodgo_test?schema=public
|
|
|
|
# Services (same as dev, adjust if your test infra differs)
|
|
REDIS_URL=redis://localhost:6379
|
|
TYPESENSE_HOST=localhost
|
|
TYPESENSE_PORT=8108
|
|
TYPESENSE_PROTOCOL=http
|
|
TYPESENSE_API_KEY=ts_dev_key_change_me
|
|
|
|
# MinIO
|
|
MINIO_ENDPOINT=localhost
|
|
MINIO_PORT=9000
|
|
MINIO_ACCESS_KEY=test_minio_user
|
|
MINIO_SECRET_KEY=test_minio_secret_key_32chars!!
|
|
MINIO_BUCKET=goodgo-uploads
|
|
|
|
# Auth (deterministic secrets for test reproducibility)
|
|
JWT_SECRET=e2e-test-jwt-secret-key
|
|
JWT_REFRESH_SECRET=e2e-test-refresh-secret-key
|
|
JWT_EXPIRES_IN=15m
|
|
JWT_REFRESH_EXPIRES_IN=7d
|
|
NODE_ENV=test
|
|
|
|
# Payment (sandbox)
|
|
VNPAY_TMN_CODE=TESTCODE
|
|
VNPAY_HASH_SECRET=TESTHASHSECRET
|
|
VNPAY_URL=https://sandbox.vnpayment.vn/paymentv2/vpcpay.html
|
|
VNPAY_RETURN_URL=http://localhost:3000/payment/return
|