-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
39 lines (31 loc) · 1.33 KB
/
Copy path.env.example
File metadata and controls
39 lines (31 loc) · 1.33 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
# Скопируйте этот файл в .env и заполните значения
# В Windows: copy .env.example
# В Linux/Mac: cp .env.example
# Database
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/recommendations_db
# Redis
REDIS_URL=redis://localhost:6379/0
CELERY_BROKER_URL=redis://localhost:6379/1
# Security - ОБЯЗАТЕЛЬНО ИЗМЕНИТЕ!
SECRET_KEY=your-secret-key-change-in-production-please-use-long-random-string-minimum-32-characters
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
# CORS
CORS_ORIGINS=["http://localhost:3000","http://localhost:8000"]
# LLM - выберите один из провайдеров
# Gemini (рекомендуется, бесплатный) - получите на https://makersuite.google.com/app/apikey
GEMINI_API_KEY=your-gemini-api-key-here
GEMINI_MODEL=gemini-1.5-flash
# OpenAI (альтернатива) - получите на https://platform.openai.com/api-keys
OPENAI_API_KEY=your-openai-api-key-here
OPENAI_MODEL=gpt-4o-mini
# Провайдер: "gemini" или "openai" (приоритет Gemini если ключ есть)
LLM_PROVIDER=gemini
LLM_CACHE_TTL=3600
# Telegram (optional, for parsing) - получите на https://my.telegram.org
TELEGRAM_API_ID=
TELEGRAM_API_HASH=
# Rate limiting
RATE_LIMIT_PER_MINUTE=60
# Moderation
MODERATION_ENABLED=true