-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
75 lines (65 loc) · 2.26 KB
/
Copy path.env.example
File metadata and controls
75 lines (65 loc) · 2.26 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
# ======================================================================
# CORE FIGHTER - Backend environment configuration
# Copy to `.env` and adjust the values for your environment.
# ======================================================================
# ---- Application ----
APP_NAME="CORE FIGHTER"
ENVIRONMENT=development
DEBUG=true
API_V1_PREFIX=/api/v1
# Comma separated list of allowed CORS origins
BACKEND_CORS_ORIGINS=http://localhost:3000,http://localhost:5173
# ---- Security ----
# Generate with: python -c "import secrets; print(secrets.token_urlsafe(48))"
SECRET_KEY=change-me-super-secret-key
ACCESS_TOKEN_EXPIRE_MINUTES=60
REFRESH_TOKEN_EXPIRE_MINUTES=43200
# Fernet key for encrypting WordPress credentials at rest.
# Generate with: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
ENCRYPTION_KEY=change-me-fernet-key
# ---- Database (PostgreSQL + pgvector) ----
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=corefighter
POSTGRES_PASSWORD=corefighter
POSTGRES_DB=corefighter
# ---- Redis (job queue) ----
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_DB=0
REDIS_PASSWORD=
# ---- Object storage (S3 compatible / MinIO) ----
S3_ENDPOINT_URL=http://localhost:9000
S3_REGION=us-east-1
S3_ACCESS_KEY=minioadmin
S3_SECRET_KEY=minioadmin
S3_BUCKET=corefighter-media
S3_PUBLIC_URL=http://localhost:9000/corefighter-media
S3_USE_SSL=false
# ---- OpenAI ----
OPENAI_API_KEY=sk-your-key
OPENAI_VISION_MODEL=gpt-4o
OPENAI_TEXT_MODEL=gpt-4o
OPENAI_EMBEDDING_MODEL=text-embedding-3-small
OPENAI_EMBEDDING_DIM=1536
# Tuned for buyersbox EXPERIENCE voice (structure-faithful, lightly creative)
OPENAI_TEMPERATURE=0.55
OPENAI_MAX_TOKENS=1200
OPENAI_TOP_P=0.9
OPENAI_FREQUENCY_PENALTY=0.25
OPENAI_PRESENCE_PENALTY=0.15
# ---- Job / worker behaviour ----
JOB_MAX_ATTEMPTS=3
JOB_RETRY_DELAY_SECONDS=30
# ---- Similarity ----
SIMILARITY_THRESHOLD=0.50
# ---- First admin (created by seed script) ----
FIRST_ADMIN_EMAIL=admin@corefighter.local
FIRST_ADMIN_PASSWORD=admin12345
# ---- WordPress (Stage 2) ----
# REST base is the site root (not /wp-admin). Application Password from WP user profile.
WORDPRESS_BASE_URL=https://www.buyersbox.co.jp
WORDPRESS_USERNAME=
WORDPRESS_APP_PASSWORD=
# WORDPRESS_DEFAULT_CATEGORY_ID=
# WORDPRESS_DEFAULT_AUTHOR_ID=