-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
99 lines (80 loc) · 3.55 KB
/
.env.example
File metadata and controls
99 lines (80 loc) · 3.55 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Linear API Configuration
LINEAR_API_KEY=your_linear_api_key_here
# MLflow Configuration
MLFLOW_TRACKING_URI=https://mlflow.hokusai-development.local:5000
MLFLOW_SERVER_URL=https://mlflow.hokusai-development.local:5000
MLFLOW_EXPERIMENT_NAME=hokusai-evaluation
MODEL_30_MLFLOW_URI=models:/Technical Task Router/4
# Optional: Fallback IP for emergency situations (when DNS fails)
# MLFLOW_FALLBACK_IP=10.0.1.221
# Pipeline Configuration
PIPELINE_ENV=development
PIPELINE_LOG_LEVEL=INFO
PIPELINE_DATA_DIR=./data
PIPELINE_MODEL_DIR=./models
# Metaflow Configuration
METAFLOW_DATASTORE_ROOT=./metaflow_data
METAFLOW_DEFAULT_DATASTORE=local
# Random seed for reproducibility
RANDOM_SEED=42
# Test Mode
DRY_RUN=false
# Authentication Service Configuration
HOKUSAI_AUTH_SERVICE_URL=https://auth.hokus.ai
HOKUSAI_API_KEY=your_api_key_here
HOKUSAI_ADMIN_TOKEN=your_admin_token_here # Only needed for API key management
AUTH_SERVICE_TIMEOUT=5.0
AUTH_SERVICE_ID=platform # Service ID for API key validation (default: platform)
# Database Configuration
# REQUIRED: Set one of these options for database password
DB_PASSWORD=your_database_password_here
# Or use DATABASE_PASSWORD (alternative name for backward compatibility)
# DATABASE_PASSWORD=your_database_password_here
# Optional: Override database connection details
# DATABASE_HOST=your-database-host
# DATABASE_PORT=5432
# DATABASE_USER=mlflow
# DATABASE_NAME=mlflow_db
# AWS Configuration
AWS_REGION=us-east-1
# For SageMaker provider (optional)
# AWS_ACCESS_KEY_ID=your_aws_access_key
# AWS_SECRET_ACCESS_KEY=your_aws_secret_key
# Optional: AWS Secrets Manager for database credentials (production recommended)
# DB_SECRET_NAME=hokusai/database/credentials # Secret should contain "password" key
# HuggingFace Configuration (for model serving)
# Get your token from https://huggingface.co/settings/tokens
# Requires "write" access for Inference Endpoints
HUGGINGFACE_API_KEY=hf_your_token_here
# Application Environment
ENVIRONMENT=development # development, staging, or production
# API Configuration
API_SECRET_KEY=your-secret-key-here
API_HOST=0.0.0.0
API_PORT=8001
# Documentation Configuration
# Set to true to disable API documentation in production
DISABLE_DOCS=false
# In production, consider setting DISABLE_DOCS=true for security
# CORS Configuration
# In production, specify allowed origins instead of "*"
CORS_ORIGINS=["*"]
# Webhook Configuration (Primary method for model registration notifications)
# REQUIRED: Configure these for model registration notifications to work
WEBHOOK_URL=https://your-webhook-endpoint.com/api/models/ready
WEBHOOK_SECRET=your_webhook_secret_here
# Optional webhook configuration (defaults shown)
WEBHOOK_TIMEOUT=30 # Request timeout in seconds
WEBHOOK_MAX_RETRIES=5 # Maximum retry attempts
WEBHOOK_RETRY_DELAY=2 # Initial retry delay (exponential backoff)
WEBHOOK_CIRCUIT_BREAKER_FAILURE_THRESHOLD=5 # Failures before circuit opens
WEBHOOK_CIRCUIT_BREAKER_RECOVERY_TIME=60 # Recovery time in seconds
# Dataset Storage (S3 bucket for benchmark dataset uploads)
HOKUSAI_DATASET_BUCKET=hokusai-datasets
# Redis Queue Configuration (DEPRECATED - No active consumers in production)
# NOTE: Redis pub/sub is being removed. Configure webhooks above instead.
# These settings are kept temporarily for backward compatibility only.
REDIS_HOST=master.hokusai-redis-development.lenvj6.use1.cache.amazonaws.com
REDIS_PORT=6379
REDIS_AUTH_TOKEN=your_redis_auth_token_here
# REDIS_URL=redis://:auth_token@host:port/0