-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy path.env.example.failover
More file actions
27 lines (20 loc) · 1.01 KB
/
.env.example.failover
File metadata and controls
27 lines (20 loc) · 1.01 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
# Server Configuration
SERVER_PORT=3000
# Database Configuration
# Primary database (read-write)
DATABASE_URL=postgres://synapse:synapse@localhost:5432/synapse
# Optional: Replica database (read-only)
# Uncomment to enable read replica routing
# DATABASE_REPLICA_URL=postgres://synapse:synapse@localhost:5433/synapse
# Stellar Configuration
STELLAR_HORIZON_URL=https://horizon-testnet.stellar.org
# Multi-Region Examples:
# AWS RDS Multi-AZ with Read Replica
# DATABASE_URL=postgres://user:pass@synapse.cluster-xxx.us-east-1.rds.amazonaws.com:5432/synapse
# DATABASE_REPLICA_URL=postgres://user:pass@synapse.cluster-ro-xxx.us-east-1.rds.amazonaws.com:5432/synapse
# Google Cloud SQL with Read Replica
# DATABASE_URL=postgres://user:pass@primary-ip:5432/synapse
# DATABASE_REPLICA_URL=postgres://user:pass@replica-ip:5432/synapse
# Self-Hosted PostgreSQL Streaming Replication
# DATABASE_URL=postgres://synapse:synapse@primary-host:5432/synapse
# DATABASE_REPLICA_URL=postgres://synapse_readonly:synapse@replica-host:5432/synapse