diff --git a/backend/.env.example b/backend/.env.example index 1758ee7..b947575 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -1,24 +1,32 @@ -# Stellar Configuration -STELLAR_RPC_URL=https://soroban-testnet.stellar.org -CORE_CONTRACT_ID=C... -ESCROW_CONTRACT_ID=C... -FACTORY_CONTRACT_ID=C... -AUCTION_CONTRACT_ID=C... +# --- Server Configuration --- +PORT=3000 # The port the backend server will run on +TYPEORM_SYNCHRONIZE=true # Auto-sync database schema (Set to false in production) -# Database Configuration +# --- Database Configuration --- +# Individual connection parameters (used by some services) POSTGRES_USER=alien POSTGRES_PASSWORD=alienpassword POSTGRES_DB=alien_gateway POSTGRES_PORT=5432 +# Full connection string used by the TypeORM data source DATABASE_URL=postgres://alien:alienpassword@localhost:5432/alien_gateway -# API Authentication -API_KEYS=key1,key2,key3 # Comma-separated list of valid API keys +# --- Stellar / Soroban Configuration --- +# RPC endpoints for interacting with the Soroban network +STELLAR_RPC_URL=https://soroban-testnet.stellar.org +SOROBAN_RPC_URL=https://soroban-testnet.stellar.org +# Network identifier for transaction signing +STELLAR_NETWORK_PASSPHRASE="Test SDF Network ; September 2015" -KEEPER_ENABLED=false -KEEPER_SECRET_KEY= +# --- Smart Contract IDs --- +CORE_CONTRACT_ID=C... # The main protocol contract address +ESCROW_CONTRACT_ID=C... # Escrow logic contract address +FACTORY_CONTRACT_ID=C... # Factory for creating new protocol instances +AUCTION_CONTRACT_ID=C... # Auction mechanism contract address -STELLAR_NETWORK_PASSPHRASE="Test SDF Network ; September 2015" +# --- API Authentication --- +API_KEYS=key1,key2,key3 # Comma-separated list of valid API keys for guarding routes -TYPEORM_SYNCHRONIZE=true -PORT=3000 +# --- Keeper Service (Automation) --- +KEEPER_ENABLED=false # Toggle for background automation tasks +KEEPER_SECRET_KEY= # Private key used by the keeper to sign transactions \ No newline at end of file