-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
77 lines (65 loc) · 4.47 KB
/
Copy path.env.example
File metadata and controls
77 lines (65 loc) · 4.47 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
# ─── Core ───────────────────────────────────────────────────────────────────
DATABASE_URL="postgresql://postgres:password@localhost:5432/operon"
PORT="4000"
JWT_SECRET="replace_with_a_long_random_secret_min_32_chars"
AUTH_SECRET="replace_with_another_long_random_secret"
# ─── URLs ────────────────────────────────────────────────────────────────────
NEXT_PUBLIC_APP_URL="http://localhost:3000"
NEXT_PUBLIC_API_BASE_URL="http://localhost:4000/api"
# ─── GigaChat (AI analysis engine) ───────────────────────────────────────────
# Получить ключ: https://developers.sber.ru/studio → GigaChat API → Authorization key (base64)
GIGACHAT_AUTH_KEY="your_base64_authorization_key"
GIGACHAT_SCOPE="GIGACHAT_API_PERS" # GIGACHAT_API_PERS | GIGACHAT_API_CORP
GIGACHAT_MODEL="GigaChat-2-Pro"
GIGACHAT_BASE_URL="https://gigachat.devices.sberbank.ru/api/v1"
GIGACHAT_OAUTH_URL="https://ngw.devices.sberbank.ru:9443/api/v2/oauth"
# ─── Google OAuth (optional — для входа через Google) ────────────────────────
# Создать: https://console.cloud.google.com → APIs & Services → Credentials → OAuth 2.0
# Redirect URI: http://localhost:3000/api/auth/google/callback
GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
# ─── Meta Ads (optional — для интеграции Facebook/Instagram) ─────────────────
# Создать: https://developers.facebook.com → My Apps → Create App → Business
# Permissions нужны: ads_read, ads_management, business_management
# Redirect URI: http://localhost:4000/api/integrations/meta/callback
META_APP_ID=""
META_APP_SECRET=""
META_API_VERSION="v22.0"
# ─── TikTok Ads (optional) ───────────────────────────────────────────────────
# Создать: https://business-api.tiktok.com/portal/apps → Create App
# Permissions: Ad Account Management, Reports
# Redirect URI: http://localhost:4000/api/integrations/tiktok/callback
TIKTOK_APP_ID=""
TIKTOK_APP_SECRET=""
# ─── Shopify (optional — OAuth для чужих магазинов + LTV-анализ) ─────────────
# Создать: https://partners.shopify.com → Apps → Create App → Public App
# Scopes нужны: read_orders, read_products, read_analytics
# Redirect URI: http://localhost:4000/api/integrations/shopify/callback
SHOPIFY_API_KEY=""
SHOPIFY_API_SECRET=""
SHOPIFY_API_VERSION="2026-01"
# Если у тебя один конкретный магазин (private app / admin token):
SHOPIFY_STORE_URL="your-store.myshopify.com"
SHOPIFY_ACCESS_TOKEN="your_private_app_access_token"
# ─── Integrations security ───────────────────────────────────────────────────
# Случайный секрет для шифрования OAuth access-токенов (AES-256-GCM)
# Генерировать: openssl rand -hex 32
INTEGRATION_TOKEN_SECRET="replace_with_32_byte_hex_secret"
# Секрет для cron/webhook-триггера sync-джоба
INTEGRATION_SYNC_SECRET="replace_with_random_secret"
# ─── YooKassa (optional — приём платежей) ────────────────────────────────────
# https://yookassa.ru → Настройки → Данные магазина
YOOKASSA_SHOP_ID=""
YOOKASSA_SECRET_KEY=""
YOOKASSA_RETURN_URL="http://localhost:3000/dashboard"
YOOKASSA_WEBHOOK_SECRET=""
# ─── Email / SMTP (optional — дайджесты и уведомления) ───────────────────────
# Для Gmail: включить App Password — https://myaccount.google.com/apppasswords
SMTP_HOST="smtp.gmail.com"
SMTP_PORT="587"
SMTP_USER="Operon"
SMTP_PASS="qasq biuk txfw ztqc"
SMTP_FROM="Operon <noreply@operon.app>"
REDDIT_CLIENT_ID=твой_client_id
REDDIT_CLIENT_SECRET=твой_secret
REDDIT_USER_AGENT=OperonRedditLeadFinder/1.0 by твой_reddit_username