- Updated `async-channel` to version 2.5.0 and added new dependencies in `Cargo.lock`. - Introduced `minio` crate for file upload functionality. - Added `career_status` field to user-related DTOs and schemas. - Implemented file upload endpoint in `users_controller.rs` with multipart support. - Created `MinioService` for handling file uploads to MinIO. - Updated user seeding and test cases to accommodate new `career_status` field. - Refactored permissions guard to return user details.
46 lines
2.1 KiB
Bash
46 lines
2.1 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
|
|
# 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=your-minio-access-key
|
|
MINIO_SECRET_KEY=your-minio-secret-key
|
|
|
|
GOOGLE_CLIENT_ID="your_google_client_id"
|
|
GOOGLE_CLIENT_SECRET="your_google_client_secret" |