mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
PHRAS-3704 Phrasea Rendition by Phraseanet worker (#4098)
* add verify ssl * add info in webhook payload on subdef create * reset cache of list of subdef for a record when create new subdef
This commit is contained in:
@@ -34,8 +34,14 @@ class PullAssetsWorker implements WorkerInterface
|
||||
return;
|
||||
}
|
||||
|
||||
$verifySsl = isset($config['verify_ssl']) ? $config['verify_ssl'] : true ;
|
||||
|
||||
$proxyConfig = new NetworkProxiesConfiguration($this->conf);
|
||||
$clientOptions = ['base_uri' => $config['UploaderApiBaseUri'], 'http_errors' => false];
|
||||
$clientOptions = [
|
||||
'base_uri' => $config['UploaderApiBaseUri'],
|
||||
'http_errors' => false,
|
||||
'verify' => $verifySsl
|
||||
];
|
||||
|
||||
// add proxy in each request if defined in configuration
|
||||
$uploaderClient = $proxyConfig->getClientWithOptions($clientOptions);
|
||||
@@ -83,7 +89,8 @@ class PullAssetsWorker implements WorkerInterface
|
||||
'commit_id' => $commit['id'],
|
||||
'token' => $commit['token'],
|
||||
'base_url' => $config['UploaderApiBaseUri'],
|
||||
'type' => WorkerRunningJob::TYPE_PULL
|
||||
'type' => WorkerRunningJob::TYPE_PULL,
|
||||
'verify_ssl'=> $verifySsl
|
||||
]
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user