lthn.io/app/Mod/Chain/config.php
Claude d83c9094cd
refactor: move /v1/* API routes exclusively to Website/Api module
Production stack has honeypot that null-routes API payloads sent to
the web domain. API routes now only register via Website/Api module
(api.lthn.io). Mod modules stripped to web-only routes. Frontend JS
fetch calls use configurable API_URL for cross-origin API access.

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

13 lines
521 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', ''),
'api_url' => env('API_URL', ''), // empty = same origin, set to https://api.lthn.io for production
];