Skip to content

Commit c0009fe

Browse files
committed
chore(env): standardize env files (remove unsupported keys)
1 parent 32bd21d commit c0009fe

File tree

3 files changed

+39
-39
lines changed

3 files changed

+39
-39
lines changed

.env.development

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
1-
# Development Environment Configuration
2-
# This file contains environment variables for development
1+
############################################################
2+
# Development Environment
3+
############################################################
34

4-
# Backend Configuration
5+
# Backend
56
BACKEND=auto
67
MODEL_NAME=sentence-transformers/all-MiniLM-L6-v2
78
MLX_MODEL_PATH=
89
CROSS_ENCODER_MODEL=
910

10-
# Server Configuration
11+
# Server
1112
HOST=0.0.0.0
1213
PORT=9000
1314
RELOAD=true
1415

15-
# Performance Settings
16+
# Performance
1617
BATCH_SIZE=32
1718
MAX_BATCH_SIZE=128
1819
MAX_TEXTS_PER_REQUEST=100
1920
MAX_PASSAGES_PER_RERANK=1000
21+
MAX_SEQUENCE_LENGTH=512
2022
DEVICE_MEMORY_FRACTION=0.8
23+
REQUEST_TIMEOUT=300
2124

22-
# Logging Configuration
25+
# Logging
2326
LOG_LEVEL=DEBUG
2427
LOG_FORMAT=json
2528

26-
# Security Settings (Development)
29+
# Security (dev permissive)
2730
ALLOWED_HOSTS=["*"]
2831
ALLOWED_ORIGINS=["*"]
29-
REQUEST_TIMEOUT=300
3032

31-
# Development Features
32-
DEBUG=true
33-
ENABLE_CORS=true
34-
ENABLE_DOCS=true
33+
# NOTE: Removed unsupported flags (DEBUG, ENABLE_*)

.env.example

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
1-
# Environment Configuration
1+
############################################################
2+
# Example Environment (.env example)
3+
############################################################
4+
5+
# Backend
26
BACKEND=auto
37
MODEL_NAME=Qwen/Qwen3-Embedding-4B
48
MLX_MODEL_PATH=
59
CROSS_ENCODER_MODEL=
610

7-
# Server Configuration
11+
# Server
812
HOST=0.0.0.0
913
PORT=9000
1014
RELOAD=false
1115

12-
# Performance Settings
16+
# Performance
1317
BATCH_SIZE=32
1418
MAX_BATCH_SIZE=128
1519
MAX_TEXTS_PER_REQUEST=100
1620
MAX_PASSAGES_PER_RERANK=1000
17-
DEVICE_MEMORY_FRACTION=0.8
1821
MAX_SEQUENCE_LENGTH=512
22+
DEVICE_MEMORY_FRACTION=0.8
1923
REQUEST_TIMEOUT=300
2024

21-
# Logging Configuration
25+
# Logging
2226
LOG_LEVEL=INFO
2327
LOG_FORMAT=json
28+
29+
# Security (optional)
30+
# ALLOWED_HOSTS=["example.com","api.example.com"]
31+
# ALLOWED_ORIGINS=["https://example.com","https://app.example.com"]
32+
33+
# Copy to .env and adjust as needed.

.env.production

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,33 @@
1-
# Production Environment Configuration
2-
# This file contains environment variables for production deployment
1+
############################################################
2+
# Production Environment (clean)
3+
############################################################
34

4-
# Backend Configuration
5+
# Backend
56
BACKEND=auto
67
MODEL_NAME=mlx-community/Qwen3-Embedding-4B-4bit-DWQ
78
MLX_MODEL_PATH=
89
CROSS_ENCODER_MODEL=
910

10-
# Server Configuration
11+
# Server
1112
HOST=0.0.0.0
1213
PORT=9000
1314
RELOAD=false
1415

15-
# Performance Settings
16+
# Performance
1617
BATCH_SIZE=32
1718
MAX_BATCH_SIZE=128
1819
MAX_TEXTS_PER_REQUEST=100
1920
MAX_PASSAGES_PER_RERANK=1000
21+
MAX_SEQUENCE_LENGTH=512
2022
DEVICE_MEMORY_FRACTION=0.8
23+
REQUEST_TIMEOUT=300
2124

22-
# Logging Configuration
25+
# Logging
2326
LOG_LEVEL=INFO
2427
LOG_FORMAT=json
2528

26-
# Security Settings (Production)
27-
ALLOWED_HOSTS=["your-domain.com", "api.your-domain.com"]
28-
ALLOWED_ORIGINS=["https://your-domain.com", "https://app.your-domain.com"]
29-
REQUEST_TIMEOUT=300
30-
31-
# Production Features
32-
DEBUG=false
33-
ENABLE_CORS=true
34-
ENABLE_DOCS=false
35-
36-
# Health Check Settings
37-
HEALTH_CHECK_INTERVAL=30
38-
HEALTH_CHECK_TIMEOUT=10
29+
# Security (uncomment & customize)
30+
ALLOWED_HOSTS=["your-domain.com","api.your-domain.com"]
31+
ALLOWED_ORIGINS=["https://your-domain.com","https://app.your-domain.com"]
3932

40-
# Monitoring
41-
ENABLE_METRICS=true
42-
METRICS_PORT=9001
33+
# NOTE: Removed unsupported flags (DEBUG, ENABLE_*, HEALTH_*, METRICS_*)

0 commit comments

Comments
 (0)