Skip to content

Commit

Permalink
increase imaginary timeouts as for big files the processing could tak…
Browse files Browse the repository at this point in the history
…e very long

Signed-off-by: Simon L <[email protected]>
  • Loading branch information
szaimen committed Mar 9, 2023
1 parent 691aa8d commit 0ced170
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/private/Preview/Imaginary.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ public function getCroppedThumbnail(File $file, int $maxX, int $maxY, bool $crop
'content-type' => $file->getMimeType(),
'body' => $stream,
'nextcloud' => ['allow_local_address' => true],
'timeout' => 120,
'connect_timeout' => 3,
]);
} catch (\Exception $e) {
$this->logger->error('Imaginary preview generation failed: ' . $e->getMessage(), [
Expand Down

0 comments on commit 0ced170

Please sign in to comment.