@@ -255,6 +255,40 @@ The main AR.IO Gateway service that handles data retrieval, indexing, and servin
255255| ` LMDB_DATA_PATH ` | string | ` ./data/lmdb ` | Path to LMDB data |
256256| ` PARQUET_DATA_PATH ` | string | ` ./data/parquet ` | Path to Parquet data |
257257
258+ ### Rate Limiter
259+
260+ | Variable | Type | Default | Description |
261+ | ----------------------------------------- | ------- | --------- | ----------------------------------- |
262+ | ` ENABLE_RATE_LIMITER ` | boolean | ` false ` | Enable rate limiting system |
263+ | ` RATE_LIMITER_TYPE ` | string | ` memory ` | Rate limiter type (memory or redis) |
264+ | ` RATE_LIMITER_REDIS_ENDPOINT ` | string | - | Redis endpoint for rate limiter |
265+ | ` RATE_LIMITER_IP_TOKENS_PER_BUCKET ` | number | ` 100000 ` | IP bucket token capacity |
266+ | ` RATE_LIMITER_IP_REFILL_PER_SEC ` | number | ` 20 ` | IP bucket refill rate per second |
267+ | ` RATE_LIMITER_RESOURCE_TOKENS_PER_BUCKET ` | number | ` 1000000 ` | Resource bucket token capacity |
268+ | ` RATE_LIMITER_RESOURCE_REFILL_PER_SEC ` | number | ` 100 ` | Resource bucket refill rate |
269+ | ` RATE_LIMITER_IPS_AND_CIDRS_ALLOWLIST ` | string | - | Comma-separated IP/CIDR allowlist |
270+ | ` RATE_LIMITER_ARNS_ALLOWLIST ` | string | - | Comma-separated ArNS allowlist |
271+
272+ ### x402 Payment Protocol
273+
274+ | Variable | Type | Default | Description |
275+ | -------------------------------------- | ------- | -------------- | ------------------------------------------ |
276+ | ` ENABLE_X_402_USDC_DATA_EGRESS ` | boolean | ` false ` | Enable x402 USDC payments |
277+ | ` X_402_USDC_NETWORK ` | string | - | Base network (base-sepolia or base) |
278+ | ` X_402_USDC_WALLET_ADDRESS ` | string | - | USDC wallet address for receiving payments |
279+ | ` X_402_USDC_FACILITATOR_URL ` | string | - | Payment facilitator URL |
280+ | ` X_402_USDC_PER_BYTE_PRICE ` | number | ` 0.0000000001 ` | Price per byte in USDC |
281+ | ` X_402_USDC_DATA_EGRESS_MIN_PRICE ` | number | ` 0.001 ` | Minimum payment amount |
282+ | ` X_402_USDC_DATA_EGRESS_MAX_PRICE ` | number | ` 1.00 ` | Maximum payment amount |
283+ | ` X_402_RATE_LIMIT_CAPACITY_MULTIPLIER ` | number | ` 10 ` | Paid token capacity multiplier |
284+ | ` X_402_APP_NAME ` | string | - | Application name for paywall |
285+ | ` X_402_APP_LOGO ` | string | - | Application logo URL for paywall |
286+ | ` X_402_CDP_CLIENT_KEY ` | string | - | ** PUBLIC** : CDP client key for Onramp (optional testnet, required mainnet) |
287+ | ` CDP_API_KEY_ID ` | string | - | ** SECRET** : CDP API key ID for Onramp (optional testnet, required mainnet) |
288+ | ` CDP_API_KEY_SECRET ` | string | - | ** SECRET** : CDP API secret for Onramp (use CDP_API_KEY_SECRET_FILE instead) |
289+ | ` CDP_API_KEY_SECRET_FILE ` | string | - | ** SECRET** : Path to CDP secret file for Onramp (takes precedence, recommended) |
290+ | ` CHUNK_GET_BASE64_SIZE_BYTES ` | number | ` 368640 ` | Fixed size for chunk pricing |
291+
258292## Observer Service
259293
260294### Basic Configuration
0 commit comments