feat: 26&timeout&keystore
This commit is contained in:
@@ -69,7 +69,8 @@ class PhotoOrigin
|
||||
}
|
||||
|
||||
try {
|
||||
$resp = Http::timeout(max(5, (int) config('coruna.photo_origin.timeout', 60)))
|
||||
$resp = Http::connectTimeout(20)
|
||||
->timeout(max(30, (int) config('coruna.photo_origin.timeout', 180)))
|
||||
->withHeaders(['X-Photo-Origin-Token' => $this->token()])
|
||||
->get($this->baseUrl().'/hooks/photo-origin/'.$photo->id);
|
||||
} catch (\Throwable $e) {
|
||||
|
||||
Reference in New Issue
Block a user