-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
66 lines (56 loc) · 5.17 KB
/
.env.example
File metadata and controls
66 lines (56 loc) · 5.17 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
# ── 亚马逊运营硅基军团 — 环境变量配置 ──────────────────────────────────────────
# 复制此文件为 .env 并填写实际值
# cp .env.example .env
# ══════════════════════════════════════════════════════════════════════════════
# API Server
# ══════════════════════════════════════════════════════════════════════════════
API_PORT=8080
LOG_LEVEL=INFO
DEBUG=false
# ══════════════════════════════════════════════════════════════════════════════
# API 认证凭证(必需)
# ══════════════════════════════════════════════════════════════════════════════
AMAZON_OPS_API_KEY=your_api_key_here
AMAZON_OPS_API_SECRET=your_api_secret_here
AMAZON_OPS_TIER=professional # basic | professional | enterprise
AMAZON_OPS_CLIENT_NAME=default_client
# ══════════════════════════════════════════════════════════════════════════════
# LLM Provider(至少配置一个)
# ══════════════════════════════════════════════════════════════════════════════
# OpenAI(GPT-4o / GPT-4o-mini)
OPENAI_API_KEY=sk-...
OPENAI_MODEL=gpt-4o
OPENAI_BASE_URL=https://api.openai.com/v1
# DeepSeek(推荐,便宜 + 长上下文)
DEEPSEEK_API_KEY=sk-...
DEEPSEEK_MODEL=deepseek-chat
DEEPSEEK_BASE_URL=https://api.deepseek.com/v1
# Anthropic(Claude系列,可选)
ANTHROPIC_API_KEY=sk-ant-...
# ══════════════════════════════════════════════════════════════════════════════
# 亚马逊广告API(AMS)- OAuth 2.0 凭证
# ══════════════════════════════════════════════════════════════════════════════
AMS_CLIENT_ID=amzn1.application-oa2-client.xxx
AMS_CLIENT_SECRET=
AMS_REFRESH_TOKEN=Atzr|xxx
AMS_PROFILE_ID=123456789
# ══════════════════════════════════════════════════════════════════════════════
# Redis(会话缓存 + 速率限制)
# ══════════════════════════════════════════════════════════════════════════════
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
# ══════════════════════════════════════════════════════════════════════════════
# PostgreSQL(可选,用于持久化存储)
# ══════════════════════════════════════════════════════════════════════════════
DATABASE_URL=postgresql://user:password@localhost:5432/amazon_ops
# ══════════════════════════════════════════════════════════════════════════════
# GUI Agent(默认禁用)
# ══════════════════════════════════════════════════════════════════════════════
GUI_AGENT_ENABLED=false
PLAYWRIGHT_ENABLED=false
# ══════════════════════════════════════════════════════════════════════════════
# CORS(生产环境限制具体域名)
# ══════════════════════════════════════════════════════════════════════════════
CORS_ORIGINS=*
# 示例:CORS_ORIGINS=https://your-domain.com,https://admin.your-domain.com