This commit is contained in:
2026-07-28 15:15:14 +08:00
parent 30cf33c546
commit 9ba53b6145
3 changed files with 69 additions and 0 deletions
+5
View File
@@ -13,6 +13,11 @@ return [
'app_key' => trim((string) env('EJ_PHARMACY_APP_KEY', '')),
'app_secret' => trim((string) env('EJ_PHARMACY_APP_SECRET', '')),
'callback_secret' => trim((string) env('EJ_PHARMACY_CALLBACK_SECRET', '')),
// RHEL/CentOS 7 ships cURL with NSS, which rejects some otherwise valid
// server certificate chains. `auto` selects the OpenSSL stream transport
// for NSS builds while keeping cURL for OpenSSL builds.
'http_transport' => strtolower(trim((string) env('EJ_PHARMACY_HTTP_TRANSPORT', 'auto'))),
'ca_file' => trim((string) env('EJ_PHARMACY_CA_FILE', '')),
'connect_timeout' => max((int) env('EJ_PHARMACY_CONNECT_TIMEOUT', 5), 1),
'request_timeout' => max((int) env('EJ_PHARMACY_REQUEST_TIMEOUT', 30), 5),
];