Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
110 lines (89 loc) · 4.47 KB
/
Copy path.env.example
File metadata and controls
110 lines (89 loc) · 4.47 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# =============================================================================
# .env.example — Environment Variables Template
# =============================================================================
# Copy this file to `.env` and fill in real values:
#
# cp .env.example .env
#
# This file consolidates the variables consumed by docker-compose.yml and the
# application services. For the canonical, up-to-date list of every supported
# variable (including optional/advanced ones), see:
#
# docs/ENVIRONMENT-VARIABLES.md
#
# NOTE: Never commit a real `.env` file. The values below are safe placeholders
# and MUST be replaced before running in any non-local environment.
# =============================================================================
# -----------------------------------------------------------------------------
# General / Runtime
# -----------------------------------------------------------------------------
NODE_ENV=development
LOG_LEVEL=info
PORT=3000
# -----------------------------------------------------------------------------
# Database (PostgreSQL)
# -----------------------------------------------------------------------------
# DATABASE_URL is the connection string used by the backend services.
# (docker-compose builds its own URL for the `postgres` service from the
# POSTGRES_* values below, so this is only used when running outside compose.)
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/app
# Settings consumed by the `postgres` service in docker-compose.
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=app
# -----------------------------------------------------------------------------
# Stellar / Soroban
# -----------------------------------------------------------------------------
# Network: `testnet` | `mainnet` | `futurenet` | `local`
STELLAR_NETWORK=testnet
STELLAR_HORIZON_URL=https://horizon-testnet.stellar.org
STELLAR_SOROBAN_RPC_URL=https://soroban-testnet.stellar.org
STELLAR_NETWORK_PASSPHRASE=Test SDF Network ; September 2015
# Secret key of the account used to sign transactions.
# Use a throwaway key for local development only.
STELLAR_SECRET_KEY=SXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# Public key corresponding to STELLAR_SECRET_KEY.
STELLAR_PUBLIC_KEY=GXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# Deployed contract IDs (fill in after deploying contracts; these are the same
# keys written to contract-ids.env by the deploy scripts).
STELLAR_CONTRACT_VAULT_REGISTRY=CXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
STELLAR_CONTRACT_ACCESS_LEASE=CXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
STELLAR_CONTRACT_SUBSCRIPTION=CXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# -----------------------------------------------------------------------------
# Supabase
# -----------------------------------------------------------------------------
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_ANON_KEY=your-supabase-anon-key
SUPABASE_SERVICE_ROLE_KEY=your-supabase-service-role-key
# -----------------------------------------------------------------------------
# API / Admin
# -----------------------------------------------------------------------------
# Shared secret required by admin-only endpoints. Generate a strong random value.
ADMIN_API_KEY=change-me-to-a-long-random-string
# Base URL the frontend uses to reach the API. Baked into the frontend bundle
# at build time (docker-compose passes it as a build arg).
VITE_API_URL=http://localhost:3000
# -----------------------------------------------------------------------------
# Frontend (Vite)
# -----------------------------------------------------------------------------
# Vite only exposes variables prefixed with VITE_ to the client bundle.
VITE_APP_NAME=StellarApp
VITE_STELLAR_NETWORK=testnet
VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your-supabase-anon-key
# -----------------------------------------------------------------------------
# Docker Compose (optional overrides)
# -----------------------------------------------------------------------------
# Where the application source repos are checked out (relative to this repo).
BACKEND_SRC=../backend
FRONTEND_SRC=../frontend
# Host ports exposed by docker-compose. Change if they conflict locally.
BACKEND_PORT=3000
FRONTEND_PORT=8080
POSTGRES_PORT=5432
PROMETHEUS_PORT=9090
ALERTMANAGER_PORT=9093
GRAFANA_PORT=3001
# Grafana admin login for the local monitoring stack.
GRAFANA_ADMIN_USER=admin
GRAFANA_ADMIN_PASSWORD=admin