Documenten-Server Nextcloud

Von | 20. Dezember 2020

https://github.com/nextcloud/documentserver_community/issues/61

So I patched lib/private/Http/Client/Client.php like this:

	private function buildRequestOptions(array $options): array {
		$defaults = [
			RequestOptions::PROXY => $this->getProxyUri(),
			RequestOptions::VERIFY => $this->getCertBundle(),
			RequestOptions::TIMEOUT => 30,
		];

		$options = array_merge($defaults, $options);
		
		$options[RequestOptions::TIMEOUT] = 600; // <-- This line is new.

		if (!isset($options[RequestOptions::HEADERS]['User-Agent'])) {
			$options[RequestOptions::HEADERS]['User-Agent'] = 'Nextcloud Server Crawler';
		}

		return $options;
	}

and for those without access to the php.ini:
write into the .htaccess:
php_value memory_limit 512M

Eintragen: /index.php/apps/documentserver_community/

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.