Deploy Ladill QR Plus / deploy (push) Successful in 2m2s
Create was making three sequential public HTTPS billing calls (~400ms each) while holding a DB transaction open for image generation. Use loopback DNS forcing, cache balances briefly, return balance from debit, regenerate images only when style changes, and keep remote work outside the DB transaction.
15 lines
554 B
PHP
15 lines
554 B
PHP
<?php
|
|
|
|
return [
|
|
'api_url' => env('BILLING_API_URL', 'https://ladill.com/api/billing'),
|
|
'api_key' => env('BILLING_API_KEY_QR'),
|
|
// Same-server hairpin: force billing DNS to this IP (e.g. 127.0.0.1) to skip
|
|
// public network/TLS lag. Leave empty to use normal DNS.
|
|
'force_ip' => env('BILLING_API_FORCE_IP', ''),
|
|
'timeout' => (int) env('BILLING_API_TIMEOUT', 10),
|
|
'connect_timeout' => (int) env('BILLING_API_CONNECT_TIMEOUT', 2),
|
|
'service' => 'qr',
|
|
'wallet_balance_route' => 'wallet.balance',
|
|
'currency' => 'GHS',
|
|
];
|