refactor docker swarm to use just home without workers for now
add caching at nginx level for portainer and gitea
This commit is contained in:
42
dockerfiles/services/nextcloud/config/cache.config.php
Executable file
42
dockerfiles/services/nextcloud/config/cache.config.php
Executable file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
$CONFIG = [
|
||||
'memcache.local' => '\OC\Memcache\APCu',
|
||||
|
||||
'memcache.distributed' => '\OC\Memcache\Redis',
|
||||
|
||||
'memcache.locking' => '\OC\Memcache\Redis',
|
||||
|
||||
'redis' => [
|
||||
'host' => getenv('REDISHOST'), // can also be a unix domain socket: '/tmp/redis.sock'
|
||||
'port' => getenv('REDISPORT'),
|
||||
'timeout' => 0.0,
|
||||
'password' => '', // Optional, if not defined no password will be used.
|
||||
'dbindex' => 0, // Optional, if undefined SELECT will not run and will use Redis Server's default DB Index.
|
||||
],
|
||||
|
||||
'memcached_servers' => [
|
||||
['memcached', 11211],
|
||||
],
|
||||
|
||||
'memcached_options' => array(
|
||||
// Set timeouts to 50ms
|
||||
\Memcached::OPT_CONNECT_TIMEOUT => 50,
|
||||
\Memcached::OPT_RETRY_TIMEOUT => 50,
|
||||
\Memcached::OPT_SEND_TIMEOUT => 50,
|
||||
\Memcached::OPT_RECV_TIMEOUT => 50,
|
||||
\Memcached::OPT_POLL_TIMEOUT => 50,
|
||||
|
||||
// Enable compression
|
||||
\Memcached::OPT_COMPRESSION => true,
|
||||
|
||||
// Turn on consistent hashing
|
||||
\Memcached::OPT_LIBKETAMA_COMPATIBLE => true,
|
||||
|
||||
// Enable Binary Protocol
|
||||
\Memcached::OPT_BINARY_PROTOCOL => true,
|
||||
|
||||
// Binary serializer vill be enabled if the igbinary PECL module is available
|
||||
//\Memcached::OPT_SERIALIZER => \Memcached::SERIALIZER_IGBINARY,
|
||||
),
|
||||
];
|
||||
Reference in New Issue
Block a user