lthn.io/app/Mod/Chain/config.php
Claude 994fa0733f
feat(names): API auth + rate limiting on write endpoints
- Bearer token auth middleware on POST /register and /records
- Throttle: 10 registrations/min, 20 DNS updates/min
- Token configurable via API_TOKEN env var (disabled when empty)
- Daemon alias validation: a-z 0-9 . - up to 255 chars

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 03:44:53 +01:00

12 lines
417 B
PHP

<?php
declare(strict_types=1);
return [
'daemon_rpc' => env('DAEMON_RPC', 'http://127.0.0.1:46941/json_rpc'),
'wallet_rpc' => env('WALLET_RPC', 'http://127.0.0.1:46944/json_rpc'),
'cache_ttl' => (int) env('CHAIN_CACHE_TTL', 10),
'network' => env('CHAIN_NETWORK', 'testnet'), // testnet or mainnet
'lns_url' => env('LNS_URL', 'http://127.0.0.1:5553'),
'api_token' => env('API_TOKEN', ''),
];