summaryrefslogtreecommitdiffstats
path: root/18.0/apache/config/redis.config.php
blob: a5fde3c7be37a851d4891fe251c040e98ce15ac0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
if (getenv('REDIS_HOST')) {
  $CONFIG = array(
    'memcache.distributed' => '\OC\Memcache\Redis',
    'memcache.locking' => '\OC\Memcache\Redis',
    'redis' => array(
      'host' => getenv('REDIS_HOST'),
      'password' => (string) getenv('REDIS_HOST_PASSWORD'),
    ),
  );

  if (getenv('REDIS_HOST_PORT') !== false) {
    $CONFIG['redis']['port'] = (int) getenv('REDIS_HOST_PORT');
  } elseif (getenv('REDIS_HOST')[0] != '/') {
    $CONFIG['redis']['port'] = 6379;
  }
}
class="w"> "AGPL-3.0", "description": "An RSS/Atom feed reader. Requires Nextcloud backgroundjobs or an updater script to be enabled to update your feeds. See the README.md in the apps top directory", "homepage": "https://github.com/nextcloud/news", "authors": [ { "name": "Bernhard Posselt", "email": "dev@bernhard-posselt.com", "homepage": "https://bernhard-posselt.com", "role": "Developer" }, { "name": "Sean Molenaar", "email": "sean@seanmolenaar.eu", "homepage": "https://seanmolenaar.eu", "role": "Developer" }, { "name": "Alessandro Cosentino", "homepage": "http://algorithmsforthekitchen.com/", "email": "cosenal@gmail.com", "role": "Developer" }, { "name": "Jan-Christoph Borchardt", "email": "hey@jancborchardt.net", "homepage": "http://jancborchardt.net/", "role": "Designer" } ], "support": { "irc": "irc://irc.freenode.org/nextcloud-news", "issues": "https://github.com/nextcloud/news/issues", "source": "https://github.com/nextcloud/news/" }, "require": { "php": "^7.0", "ezyang/htmlpurifier": "4.10.0", "pear/net_url2": "2.2.2", "riimu/kit-pathjoin": "1.2.0", "debril/feed-io": "^3.0", "arthurhoaro/favicon": "^1.2" }, "require-dev": { "phpunit/phpunit": "^6.5", "squizlabs/php_codesniffer": "^3.3", "guzzlehttp/guzzle": "~6.3" }, "replace": { "guzzlehttp/guzzle": "*" }, "autoload": { "psr-4": { "OCA\\News\\": "lib/" } }, "autoload-dev": { "psr-4": { "OCA\\News\\Tests\\": "tests/" } } }