forked from TTL-Legacy/TTL-Legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
65 lines (58 loc) · 2.58 KB
/
Copy path.env.example
File metadata and controls
65 lines (58 loc) · 2.58 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
# --- Network Configuration ---
# Stellar/Soroban network (testnet, mainnet, or standalone)
STELLAR_NETWORK=testnet
# RPC URL for interacting with the Stellar network
STELLAR_RPC_URL=https://soroban-testnet.stellar.org
# Network passphrase for transaction signing (e.g., "Test SDF Network ; September 2015" for testnet)
STELLAR_NETWORK_PASSPHRASE=
# --- Contract Configuration ---
# The contract ID after deployment (e.g., CC...)
CONTRACT_TTL_VAULT=
# Stellar key pair identity name configured in Stellar CLI (e.g. "deployer")
STELLAR_IDENTITY=deployer
# Minimum contract version this backend build is compatible with.
# Backend refuses to start if the deployed contract version is below this.
# Default: 1
MIN_CONTRACT_VERSION=1
# --- Frontend Configuration ---
VITE_STELLAR_NETWORK=testnet
VITE_STELLAR_RPC_URL=https://soroban-testnet.stellar.org
# --- Mobile Configuration ---
# Base URL for the TTL-Legacy backend API
IOS_API_BASE_URL=https://api.ttl-legacy.app/v1
ANDROID_API_BASE_URL=https://api.ttl-legacy.app/v1
# Stellar/Soroban network for mobile apps
IOS_STELLAR_NETWORK=testnet
ANDROID_STELLAR_RPC_URL=https://soroban-testnet.stellar.org
IOS_STELLAR_RPC_URL=https://soroban-testnet.stellar.org
# --- Backend Configuration (Reminder Service) ---
# API key for sending email reminders
REMINDER_EMAIL_API_KEY=
# API key for sending SMS reminders
REMINDER_SMS_API_KEY=
# Secret key used to encrypt reminder data (email/phone) before storage
REMINDER_ENCRYPTION_SECRET=
# --- Push Notifications (Firebase Cloud Messaging) ---
# FCM server key (OAuth2 access token or legacy server key)
FCM_SERVER_KEY=
# Firebase project ID (e.g. ttl-legacy-prod)
FCM_PROJECT_ID=
# How often (seconds) the background scheduler checks for due notifications
NOTIFICATION_SCHEDULER_INTERVAL_SECS=60
# --- CORS Configuration ---
# Application environment. Controls CORS policy:
# development (or unset) — permissive CORS (all origins allowed; for local development)
# production — strict CORS (only origins listed in ALLOWED_ORIGINS are allowed)
# staging — same strict policy as production
APP_ENV=development
# Comma-separated list of allowed origins. Ignored in development mode.
# In production/staging, if empty, all cross-origin requests are blocked.
# Example: https://app.ttl-legacy.com,https://staging.ttl-legacy.com
ALLOWED_ORIGINS=
# --- Database Pool Configuration ---
# Minimum number of connections in the pool (default: 2)
DB_POOL_MIN=2
# Maximum number of connections in the pool (default: 10)
DB_POOL_MAX=10
# Connection acquisition timeout in seconds (default: 30)
DB_POOL_TIMEOUT_SECS=30