- Implemented JimengService for image generation with API integration. - Created OSSService for handling image uploads to S3. - Developed PBService for managing PocketBase interactions. - Added task management for image creation and downloading using BullMQ. - Introduced routes for creating image generation tasks. - Implemented logging and error handling for image processing. - Added configuration management for Redis and other services. - Created scripts for testing image generation and PocketBase integration. - Updated package dependencies and added new scripts for worker management.
25 lines
462 B
Plaintext
25 lines
462 B
Plaintext
# AI Configuration
|
|
KEVISUAL_NEW_API_KEY=your_api_key_here
|
|
|
|
# Redis
|
|
REDIS_HOST=localhost
|
|
REDIS_PORT=6379
|
|
REDIS_PASSWORD=
|
|
REDIS_DB=0
|
|
|
|
# jimeng API
|
|
JIMENG_API_KEY=your_jimeng_api_key
|
|
JIMENG_API_URL=https://jimeng-api.kevisual.cn/v1
|
|
JIMENG_TIMEOUT=300000
|
|
|
|
# S3
|
|
S3_BUCKET=your_bucket_name
|
|
S3_ACCESS_KEY_ID=your_access_key
|
|
S3_ACCESS_KEY_SECRET=your_secret_key
|
|
S3_REGION=cn-beijing
|
|
S3_ENDPOINT=tos-cn-beijing.volces.com
|
|
|
|
# Queue
|
|
QUEUE_CONCURRENCY=5
|
|
QUEUE_MAX_FAILED=10
|