Add certificate and user agent config for http requests
This commit is contained in:
parent
6d505d275b
commit
b7018e1f59
@ -3,12 +3,26 @@
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Configuration about security
|
||||
| Security Configuration
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Load them from env to config, preventing cache problems
|
||||
|
|
||||
*/
|
||||
'cipher' => menv('PWD_METHOD', 'SALTED2MD5'),
|
||||
'salt' => menv('SALT', '')
|
||||
'salt' => menv('SALT', ''),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| SSL Certificates
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Describes the SSL certificate verification behavior of all Guzzle requests.
|
||||
| By default, we use the CA bundle provided by Mozilla.
|
||||
|
|
||||
| See: http://docs.guzzlephp.org/en/stable/request-options.html#verify
|
||||
|
|
||||
*/
|
||||
'certificates' => menv('SSL_CERT', storage_path('patches/ca-bundle.crt')),
|
||||
'user_agent' => menv('USER_AGENT', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36'),
|
||||
];
|
||||
|
3314
storage/patches/ca-bundle.crt
Normal file
3314
storage/patches/ca-bundle.crt
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user