mata01 commited on
Commit
79cf4bb
·
1 Parent(s): 9a36956

docs: add env template examples for backend and frontend

Browse files
Files changed (1) hide show
  1. .env.example +43 -0
.env.example ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ==============================================================================
2
+ # AI Virtual Wardrobe - Backend Environment Configuration Template (.env.example)
3
+ # ==============================================================================
4
+
5
+ # 1. Authentication & Security
6
+ JWT_SECRET_KEY=generate_a_random_jwt_secret_key_here
7
+
8
+ # 2. AI Model API Keys (Fill with your credentials)
9
+ GEMINI_API_KEY=your_gemini_api_key_here
10
+ OPENAI_API_KEY=your_openai_api_key_here
11
+ OPENAI_MODEL=gpt-image-1
12
+ NVIDIA_API_KEY=your_nvidia_api_key_here
13
+ NVIDIA_MODEL=moonshotai/kimi-k2.6
14
+ CLOTHES_SEGMENTATION_MODEL=mattmdjaga/segformer_b2_clothes
15
+ TRYON_MODEL=zhengchong/CatVTON
16
+
17
+ # 3. Storage Mode Configuration
18
+ # - local: Store uploads directly on the machine's disk (uploads/ directory) - NO KEYS REQUIRED.
19
+ # - r2: Cloudflare R2 cloud storage (Requires R2 variables below).
20
+ STORAGE_MODE=local
21
+ UPLOAD_DIR=uploads
22
+ SERVER_HOST_URL=http://localhost:8002
23
+ PORT=8002
24
+
25
+ # Cloudflare R2 Credentials (Only required if STORAGE_MODE=r2)
26
+ # R2_BUCKET_NAME=your_r2_bucket_name
27
+ # R2_ACCESS_KEY_ID=your_cloudflare_r2_access_key_id
28
+ # R2_SECRET_ACCESS_KEY=your_cloudflare_r2_secret_access_key
29
+ # R2_ENDPOINT_URL=https://your-account-id.r2.cloudflarestorage.com
30
+
31
+ # 4. PostgreSQL Database Config
32
+ POSTGRES_SERVER=localhost
33
+ POSTGRES_USER=postgres
34
+ POSTGRES_PASSWORD=your_db_password
35
+ POSTGRES_DB=wardrobe_db
36
+
37
+ # 5. Redis Broker (For Celery Task Queue and Caching)
38
+ REDIS_HOST=localhost
39
+ REDIS_PORT=6380
40
+
41
+ # 6. CUDA / GPU index configurations for local CatVTON models
42
+ CUDA_VISIBLE_DEVICES=2
43
+ CUDA_DEVICE=cuda:2