-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.env.example
More file actions
47 lines (44 loc) · 1.73 KB
/
config.env.example
File metadata and controls
47 lines (44 loc) · 1.73 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
# Copy to `config.env` and adjust values as needed.
#
# Docker (postgres container)
POSTGRES_DB=pos
POSTGRES_USER=pos
POSTGRES_PASSWORD=pos
POSTGRES_PORT=5433
#
# FastAPI Backend
# When running in Docker: use service name 'db' and internal port 5432
# When running the backend on your host: use 'localhost' and POSTGRES_PORT
DB_HOST=db
DB_PORT=5432
DB_USER=pos
DB_PASSWORD=pos
DB_NAME=pos
# Security
SECRET_KEY=CHANGE_THIS_TO_A_RANDOM_SECRET_KEY_IN_PRODUCTION
# Refresh token secret (must be DIFFERENT from SECRET_KEY for security)
REFRESH_SECRET_KEY=CHANGE_THIS_TO_ANOTHER_RANDOM_SECRET_IN_PRODUCTION
# Token expiration settings
ACCESS_TOKEN_EXPIRE_MINUTES=30
REFRESH_TOKEN_EXPIRE_DAYS=7
# CORS origins (comma-separated list of allowed origins)
# Examples:
# - Single domain: CORS_ORIGINS=http://example.com
# - Multiple domains: CORS_ORIGINS=http://example.com,https://app.example.com
# - IP address: CORS_ORIGINS=http://192.168.1.100:4200
# - With wildcard: CORS_ORIGINS=http://example.com,*
CORS_ORIGINS=http://localhost:4200
# Frontend URLs (used by Angular app and test scripts)
# With HAProxy setup, all external traffic goes through port 4202
# - API requests: http://your-ip:4202/api/* -> proxied to backend:8020
# - WebSocket: ws://your-ip:4202/ws/* -> proxied to ws-bridge:8021
# - Frontend: http://your-ip:4202/ -> served by frontend:4200
#
# Note: Frontend uses relative URLs by default (works with HAProxy)
# These URLs are used for test scripts and documentation
API_URL=http://localhost:4202/api
WS_URL=ws://localhost:4202/ws
# Stripe (payment processing)
# Note: Stripe keys are now stored per-tenant in the database (configured in Settings)
# STRIPE_CURRENCY is used as a fallback if tenant has not configured a currency
STRIPE_CURRENCY=usd