- Added Default trait to UsersDetailItemDto for easier instantiation. - Refactored UsersServiceTrait to use Pin<Box<dyn Future<...>> for async functions, improving compatibility with async/await. - Updated all service methods to return futures instead of using async_trait. - Improved error handling and logging in upload_file method, ensuring proper handling of multipart data. - Masked sensitive information in Env struct's Debug implementation for better security in logs. - Cleaned up Cargo.toml by removing unnecessary async-trait workspace dependency.
49 lines
2.3 KiB
Bash
49 lines
2.3 KiB
Bash
# RUST_ENV : Mode environment aplikasi (misal: development, production)
|
|
# RUST_LOG : Level logging aplikasi Rust (misal: debug, info, warn, error)
|
|
# PORT : Port yang digunakan backend service
|
|
# SURREALDB_URL : URL koneksi ke SurrealDB (gunakan ws:// untuk WebSocket)
|
|
# SURREALDB_USERNAME : Username untuk SurrealDB
|
|
# SURREALDB_PASSWORD : Password untuk SurrealDB
|
|
# SURREALDB_NAMESPACE : Namespace SurrealDB yang digunakan
|
|
# SURREALDB_DBNAME : Nama database SurrealDB
|
|
# ACCESS_TOKEN_SECRET : Secret key untuk JWT access token (ganti dengan nilai rahasia)
|
|
# REFRESH_TOKEN_SECRET : Secret key untuk JWT refresh token (ganti dengan nilai rahasia)
|
|
# SMTP_EMAIL : Email yang digunakan untuk mengirim email (SMTP)
|
|
# SMTP_PASSWORD : Password email SMTP
|
|
# SMTP_NAME : Nama pengirim email (misal: nama aplikasi)
|
|
# SMTP_HOST : Host SMTP server (misal: smtp.gmail.com)
|
|
# REDISDB_URL : URL/host Redis database
|
|
# FE_URL : URL frontend aplikasi (misal: http://localhost)
|
|
# MINIO_ENDPOINT : Endpoint MinIO object storage
|
|
# MINIO_BUCKET_NAME : Nama bucket default MinIO
|
|
# MINIO_ACCESS_KEY : Access key MinIO atau MINIO_ROOT_USER
|
|
# MINIO_SECRET_KEY : Secret key MinIO atau MINIO_ROOT_PASSWORD
|
|
# MINIO_ROOT_USER : Username root MinIO (default: minioadmin)
|
|
# MINIO_ROOT_PASSWORD : Password root MinIO (default: minioadmin)
|
|
# GOOGLE_CLIENT_ID : Client ID OAuth Google (untuk login Google)
|
|
# GOOGLE_CLIENT_SECRET : Client Secret OAuth Google
|
|
|
|
RUST_ENV=development
|
|
RUST_LOG=debug
|
|
PORT=4099
|
|
SURREALDB_URL=ws://localhost:8000/rpc
|
|
SURREALDB_USERNAME=root
|
|
SURREALDB_PASSWORD=root
|
|
SURREALDB_NAMESPACE=test
|
|
SURREALDB_DBNAME=test
|
|
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" |