Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
85 lines (75 loc) · 3.03 KB
/
Copy path.env.example
File metadata and controls
85 lines (75 loc) · 3.03 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
# BASE SETTINGS
COMPOSE_PROJECT_NAME=projectx
# DATABASE SETTINGS
POSTGRES_PASSWORD=postgres
POSTGRES_USER=postgres
POSTGRES_DB=projectx_db
POSTGRES_PORT=5432
# Use "localhost" for running migrations or scripts locally
POSTGRES_HOST=db
DATABASE_URL="postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}?schema=public&connect_timeout=300"
# OBJECT STORAGE SETTINGS (S3 API; RustFS in docker compose)
S3_PORT=9000
S3_CONSOLE_PORT=9001
# Address containers use; the store always listens on 9000 inside the network.
# Use "http://localhost:${S3_PORT}" for scripts running outside docker
S3_ENDPOINT="http://storage:9000"
S3_REGION=us-east-1
S3_BUCKET=projectx-assets
# Local stores need path-style URLs (http://host/bucket/key)
S3_FORCE_PATH_STYLE=true
# Base URL browsers use for published images (the assets/ prefix is public)
S3_PUBLIC_URL="http://localhost:${S3_PORT}/${S3_BUCKET}"
# Local development credentials, change them for any shared environment
S3_ACCESS_KEY_ID=projectx
S3_SECRET_ACCESS_KEY=projectx-dev-secret
# TEMPORAL SETTINGS
TEMPORAL_PORT=7233
TEMPORAL_UI_PORT=8080
TEMPORAL_HOST="temporal:${TEMPORAL_PORT}"
TEMPORAL_NAMESPACE=default
# SERVICES SETTINGS
NODE_ENV=development
AUTH_PORT=8081
ORDER_PORT=8082
PRODUCT_PORT=8083
# EMBEDDINGS (apps/embeddings, docs/ai/search/EMBEDDINGS_SERVICE.md)
# Pinned model files, written by `pnpm --filter @projectx/embeddings models:fetch`
# (an absolute path for local runs; compose uses /models)
MODEL_CACHE_DIR="./model-cache"
EMBED_TEXT_PORT=8085
EMBED_IMAGE_PORT=8086
EMBED_TEXT_URL="http://embed-text:${EMBED_TEXT_PORT}"
EMBED_IMAGE_URL="http://embed-image:${EMBED_IMAGE_PORT}"
EMBED_THREADS_TEXT=2
EMBED_THREADS_IMAGE=4
# UTC hours when the bulk worker takes batches, e.g. 22:00-06:00; empty means always
BULK_INGESTION_WINDOW=
# EMAIL SETTINGS
SENDGRID_API_KEY=SG.your_sendgrid_api_key
# REMEMBER TO USE A VALID SENDER EMAIL, more info: https://app.sendgrid.com/settings/sender_auth/senders
EMAIL_FROM=support@projectx.com
EMAIL_FROM_NAME=ProjectX Team
# PAYMENT SETTINGS
# You can find your secret key in your Stripe account
STRIPE_PUBLISHABLE_KEY=pk_test_your_stripe_publishable_key
STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key
# The demo catalog can't fulfill orders, so the order service refuses a live key (sk_live_)
# unless this is true
ALLOW_LIVE_PAYMENTS=false
# If you are testing your webhook locally with the Stripe CLI you
# can find the endpoint's secret by running `stripe listen`
# Otherwise, find your endpoint's secret in your webhook settings in the Developer Dashboard
STRIPE_WEBHOOK_SECRET=whsec_your_stripe_webhook_signing_secret
# WEB APP SETTINGS
# JWT for authentication
JWT_SECRET=your_secret_key_for_jwt
# Session cookie secret
SESSION_SECRET=your_secret_key_for_sessions
# APIs used by the frontend
AUTH_API_URL="http://localhost:${AUTH_PORT}"
ORDER_API_URL="http://localhost:${ORDER_PORT}"
PRODUCT_API_URL="http://localhost:${PRODUCT_PORT}"
# DEVELOPMENT ONLY
# NGROK to expose local services to the internet
NGROK_AUTHTOKEN=your_ngrok_auth_token