Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
154 lines (123 loc) · 6.38 KB
/
Copy path.env.example
File metadata and controls
154 lines (123 loc) · 6.38 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# =============================================================================
# .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
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
# USDC token contract used for payments.
USDC_CONTRACT_ID=CXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# -----------------------------------------------------------------------------
# Supabase
# -----------------------------------------------------------------------------
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_ANON_KEY=your-supabase-anon-key
SUPABASE_SERVICE_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
# -----------------------------------------------------------------------------
# Agent / Registry / LLM
# -----------------------------------------------------------------------------
# Secret key used by the agent service to sign transactions.
AGENT_SECRET_KEY=SXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# Secret key used by the registry service to sign transactions.
REGISTRY_SECRET_KEY=SXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# OpenRouter API key used by the LLM-backed agent.
OPENROUTER_API_KEY=your-openrouter-api-key
# -----------------------------------------------------------------------------
# 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
# Environment label attached to Prometheus external_labels (monitoring/prometheus.yml).
# Defaults to `local` for the compose stack; set to `production` (or `staging`,
# etc.) for non-local deployments so metrics and alerts are labelled correctly.
PROMETHEUS_ENVIRONMENT=local
# -----------------------------------------------------------------------------
# Alertmanager receivers
# -----------------------------------------------------------------------------
# These values are injected into monitoring/alertmanager.yml at container
# start (see the alertmanager service in docker-compose.yml). Leave them empty
# to disable the corresponding receiver. Never commit real secrets.
# Slack incoming webhook for warning-level alerts.
ALERTMANAGER_SLACK_WEBHOOK_URL=
# Slack channel to post warning alerts to (e.g. #alerts-warning).
ALERTMANAGER_SLACK_CHANNEL=#alerts-warning
# PagerDuty integration key (Events API v2) for critical alerts.
ALERTMANAGER_PAGERDUTY_SERVICE_KEY=
# SMTP settings for the email receiver (critical alerts).
ALERTMANAGER_SMTP_SMARTHOST=localhost:587
ALERTMANAGER_SMTP_FROM=alerts@example.com
ALERTMANAGER_SMTP_AUTH_USERNAME=
ALERTMANAGER_SMTP_AUTH_PASSWORD=
# Comma-separated list of recipients for email alerts.
ALERTMANAGER_EMAIL_TO=oncall@example.com