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:
15
dockerfiles/services/nextcloud/config/apps.config.php
Executable file
15
dockerfiles/services/nextcloud/config/apps.config.php
Executable file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
$CONFIG = array (
|
||||
"apps_paths" => array (
|
||||
0 => array (
|
||||
"path" => OC::$SERVERROOT."/apps",
|
||||
"url" => "/apps",
|
||||
"writable" => false,
|
||||
),
|
||||
1 => array (
|
||||
"path" => OC::$SERVERROOT."/custom_apps",
|
||||
"url" => "/custom_apps",
|
||||
"writable" => true,
|
||||
),
|
||||
),
|
||||
);
|
||||
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,
|
||||
),
|
||||
];
|
||||
14
dockerfiles/services/nextcloud/config/db.config.php
Executable file
14
dockerfiles/services/nextcloud/config/db.config.php
Executable file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
$CONFIG = [
|
||||
'dbtype' => getenv('DBTYPE'),
|
||||
'dbhost' => getenv('DBHOST') .':'. getenv('DBPORT'),
|
||||
|
||||
'dbname' => getenv('DBNAME'),
|
||||
|
||||
'dbuser' => getenv('DBUSER'),
|
||||
'dbpassword' => getenv('DBPASS'),
|
||||
|
||||
'dbtableprefix' => 'oc_',
|
||||
'mysql.utf8mb4' => true,
|
||||
];
|
||||
7
dockerfiles/services/nextcloud/config/logging.config.php
Executable file
7
dockerfiles/services/nextcloud/config/logging.config.php
Executable file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
$CONFIG = [
|
||||
'log_type' => 'errorlog',
|
||||
|
||||
'loglevel' => getenv('LOGLEVEL'),
|
||||
];
|
||||
19
dockerfiles/services/nextcloud/config/maintenance.config.php
Executable file
19
dockerfiles/services/nextcloud/config/maintenance.config.php
Executable file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
$CONFIG = [
|
||||
// 'maintenance' => false,
|
||||
// 'theme' => '',
|
||||
//
|
||||
// 'installed' => false,
|
||||
//
|
||||
// 'instanceid' => 'ocxziwl6co38',
|
||||
// 'passwordsalt' => 'FKWh+oXeNAm2EPHg6mz+9xE48gunGb',
|
||||
// 'secret' => 'yC3EEMk31oZpas8U65awdT5rxR40+8uP5NEkD82S3iLNNWqr',
|
||||
// 'trusted_domains' => [
|
||||
// 0 => 'dkhost.xai-corp.net:8083',
|
||||
// ],
|
||||
// 'datadirectory' => '/var/www/html/data',
|
||||
// 'overwritehost' => 'xaibox.xai-corp.net',
|
||||
// 'overwriteprotocol' => 'https',
|
||||
// 'overwrite.cli.url' => 'https://xaibox.xai-corp.net',
|
||||
];
|
||||
Reference in New Issue
Block a user