diff --git a/.env.mainnet b/.env.mainnet index ac9e52b665..af782037e3 100644 --- a/.env.mainnet +++ b/.env.mainnet @@ -21,7 +21,7 @@ BASE_NODE_L1_TRUST_RPC="false" # -------------------- BASE_NODE_L2_ENGINE_RPC=ws://execution:8551 BASE_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt -BASE_NODE_L2_ENGINE_AUTH_RAW=688f5d737bad920bdfb2fc2f488d6b6209eebda1dae949a8de91398d932c517a +BASE_NODE_L2_ENGINE_AUTH_RAW=REPLACE_WITH_A_64_CHARACTER_HEX_SECRET # P2P CONFIGURATION # ----------------- diff --git a/.env.sepolia b/.env.sepolia index e518129fbd..cd781b38e7 100644 --- a/.env.sepolia +++ b/.env.sepolia @@ -21,7 +21,7 @@ BASE_NODE_L1_TRUST_RPC="false" # -------------------- BASE_NODE_L2_ENGINE_RPC=http://execution:8551 BASE_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt -BASE_NODE_L2_ENGINE_AUTH_RAW=688f5d737bad920bdfb2fc2f488d6b6209eebda1dae949a8de91398d932c517a +BASE_NODE_L2_ENGINE_AUTH_RAW=REPLACE_WITH_A_64_CHARACTER_HEX_SECRET # P2P CONFIGURATION # ----------------- diff --git a/.gitignore b/.gitignore index 1dc513860f..d5c0c8fbf3 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,6 @@ /reth-data/ /dependency_updater/dependency_updater .DS_Store +# Local operator configuration files may contain credentials. +.env +.env.* diff --git a/README.md b/README.md index 2e0b629989..bc1b1dd313 100644 --- a/README.md +++ b/README.md @@ -13,10 +13,10 @@ Base is a secure, low-cost, developer-friendly Ethereum L2 built on Optimism's [ ## Quick Start 1. Ensure you have an Ethereum L1 full node RPC and beacon endpoint available. -2. Choose your network: - - For mainnet: use `.env.mainnet` - - For testnet: use `.env.sepolia` -3. Configure your L1 endpoints in the appropriate `.env` file: +2. Copy the configuration file for your network to a local, ignored file: + - For mainnet: `cp .env.mainnet .env.local.mainnet` + - For testnet: `cp .env.sepolia .env.local.sepolia` +3. Configure your L1 endpoints and `BASE_NODE_L2_ENGINE_AUTH_RAW` in the copied `.env` file: ```bash BASE_NODE_L1_ETH_RPC= BASE_NODE_L1_BEACON= @@ -25,10 +25,10 @@ Base is a secure, low-cost, developer-friendly Ethereum L2 built on Optimism's [ ```bash # For mainnet (default): - docker compose up --build + NETWORK_ENV=.env.local.mainnet docker compose up --build # For testnet: - NETWORK_ENV=.env.sepolia docker compose up --build + NETWORK_ENV=.env.local.sepolia docker compose up --build ``` ## Supported Clients