Add certificate and user agent config for http requests

This commit is contained in:
printempw 2018-08-07 18:15:39 +08:00 committed by Pig Fang
parent 6d505d275b
commit b7018e1f59
2 changed files with 3330 additions and 2 deletions

View File

@ -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'),
];

File diff suppressed because it is too large Load Diff