-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
88 lines (76 loc) · 3.05 KB
/
env.example
File metadata and controls
88 lines (76 loc) · 3.05 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
# Django Settings
SECRET_KEY=your-secret-key-here-change-in-production
DEBUG=True
ENV=LOCAL
# Database (PostgreSQL)
DB_NAME=forex_db
DB_USER=postgres
DB_PASSWORD=postgres
DB_HOST=db
DB_PORT=5432
# Redis
# For local development (Windows/Mac/Linux):
REDIS_URL=redis://localhost:6379/0
CELERY_BROKER_URL=redis://localhost:6379/0
# For Docker:
# REDIS_URL=redis://redis:6379/0
# CELERY_BROKER_URL=redis://redis:6379/0
# API Keys (Add your own)
TWELVEDATA_API_KEY=your-twelvedata-api-key
FINANCIALMODELINGPREP_API_KEY=your_financial_modeling_prep_api_key_here
METALSAPI_API_KEY=your-metalsapi-api-key
OANDA_API_KEY=your-oanda-api-key
# AI Providers (choose any combination)
GEMINI_API_KEY=your-gemini-api-key
GEMINI_MODEL=gemini-1.5-flash
OPENAI_API_KEY=your-openai-api-key
OPENAI_MODEL=gpt-4.1-mini
OPENAI_ORG_ID=
OPENAI_PROJECT_ID=
COHERE_API_KEY=your-cohere-api-key
COHERE_MODEL=command-r-plus
OPENROUTER_API_KEY=your-openrouter-api-key
OPENROUTER_MODEL=openrouter/anthropic/claude-3-haiku
TOGETHER_API_KEY=your-together-api-key
TOGETHER_MODEL=togethercomputer/llama-3-70b-instruct
DEEPINFRA_API_KEY=your-deepinfra-api-key
DEEPINFRA_MODEL=meta-llama/Llama-3.1-70B-Instruct
GROQ_API_KEY=your-groq-api-key
GROQ_MODEL=llama3-70b-8192
AI_PROVIDER_PRIORITY=openai,gemini,cohere,openrouter,together_ai,deepinfra,groq
AI_PROVIDER_HTTP_TIMEOUT=30
AI_PROVIDER_DEFAULT_TEMPERATURE=0.3
# Allowed Hosts
ALLOWED_HOSTS=localhost,127.0.0.1
# Production Domain (for automatic CORS/CSRF configuration)
# If CORS_ALLOWED_ORIGINS or CSRF_TRUSTED_ORIGINS are not set,
# will automatically use https://PRODUCTION_DOMAIN and https://www.PRODUCTION_DOMAIN
PRODUCTION_DOMAIN=myaibaz.ir
# CORS Allowed Origins (comma-separated, required in production)
# If not set, will use https://PRODUCTION_DOMAIN and https://www.PRODUCTION_DOMAIN
CORS_ALLOWED_ORIGINS=https://myaibaz.ir,https://www.myaibaz.ir
# CSRF Trusted Origins (comma-separated, required in production)
# If not set, will use https://PRODUCTION_DOMAIN and https://www.PRODUCTION_DOMAIN
CSRF_TRUSTED_ORIGINS=https://myaibaz.ir,https://www.myaibaz.ir
# Public IP Configuration (for internet access)
# Set your public IP address to allow access from the internet
# Leave empty if you only want local network access
PUBLIC_IP=
PUBLIC_PORT=8000
FRONTEND_PUBLIC_PORT=3000
# Frontend and Backend URLs (auto-configured if PUBLIC_IP is set)
FRONTEND_URL=http://localhost:3000
BACKEND_URL=http://localhost:8000
# Kavenegar SMS
KAVENEGAR_API_KEY=your-kavenegar-api-key-here
KAVENEGAR_SENDER=your-sender-number-here
# Note: KAVENEGAR_SENDER is optional but recommended
# If not set, Kavenegar will use default sender (may not work in all cases)
KAVENEGAR_TEMPLATE=codeToken
# Note: KAVENEGAR_TEMPLATE is the name of the verification template defined in Kavenegar panel
# Make sure the template is approved and contains %token placeholder
# reCAPTCHA v3 (for bot protection)
RECAPTCHA_SITE_KEY=your-recaptcha-site-key-here
RECAPTCHA_SECRET_KEY=your-recaptcha-secret-key-here
# Get keys from: https://www.google.com/recaptcha/admin/create
# Note: Use reCAPTCHA v3 (invisible, score-based)