-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
30 lines (23 loc) · 904 Bytes
/
.env.example
File metadata and controls
30 lines (23 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Environment Variables
# AI Product Photo Detector
# Copy to .env and fill in values
# Model Configuration
MODEL_PATH=models/best_model.pt
# MLflow
MLFLOW_TRACKING_URI=http://localhost:5000
# Logging
LOG_LEVEL=INFO
# API Configuration
API_HOST=0.0.0.0
API_PORT=8000
# Security — API Key Authentication
# Comma-separated list of valid API keys. When set, all /predict and /predict/batch
# requests must include X-API-Key header.
# Generate a key: python -c "from src.inference.auth import generate_api_key; print(generate_api_key())"
# API_KEYS=apd_your-key-here
# Set to true to enforce authentication even if API_KEYS is empty (blocks all requests)
# REQUIRE_AUTH=false
# CORS — Allowed Origins
# Comma-separated list of allowed origins for CORS.
# Defaults to Cloud Run URL + localhost if not set.
# ALLOWED_ORIGINS=https://ai-product-detector-jh7zzukaea-ew.a.run.app,http://localhost:8080