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:
2018-04-07 08:11:23 -04:00
parent 3ed65eefe9
commit 83ec6809d6
45 changed files with 438 additions and 192 deletions

View 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,
),
),
);

View 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,
),
];

View 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,
];

View File

@@ -0,0 +1,7 @@
<?php
$CONFIG = [
'log_type' => 'errorlog',
'loglevel' => getenv('LOGLEVEL'),
];

View 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',
];