diff --git a/nextcloud/Containerfile b/nextcloud/Containerfile index b13a3b1..ff6e11a 100644 --- a/nextcloud/Containerfile +++ b/nextcloud/Containerfile @@ -104,7 +104,9 @@ RUN mkdir -p /srv/nextcloud/data && \ chown -R www-data:www-data /srv/nextcloud # copy nextcloud config -COPY --chown=www-data:www-data assets/my.config.php nextcloud/config/ +COPY --chown=www-data:www-data assets/config/ nextcloud/config/ +# make link to host config +RUN ln -s /vol/data/host.config.php nextcloud/config/host.config.php ### ### Crontab diff --git a/nextcloud/assets/config/cache.config.php b/nextcloud/assets/config/cache.config.php new file mode 100644 index 0000000..deb7965 --- /dev/null +++ b/nextcloud/assets/config/cache.config.php @@ -0,0 +1,13 @@ + '\\OC\\Memcache\\Redis', +'memcache.distributed' => '\\OC\\Memcache\\Redis', +'memcache.locking' => '\\OC\\Memcache\\Redis', +'filelocking.enabled' => 'true', +'redis' => + array ( + 'host' => '/var/run/redis/redis-server.sock', + 'port' => 0, + 'timeout' => 0.0, + ), +); diff --git a/nextcloud/assets/config/misc.config.php b/nextcloud/assets/config/misc.config.php new file mode 100644 index 0000000..26354c4 --- /dev/null +++ b/nextcloud/assets/config/misc.config.php @@ -0,0 +1,4 @@ + '/', +); diff --git a/nextcloud/assets/my.config.php b/nextcloud/assets/my.config.php deleted file mode 100644 index 81ad1fb..0000000 --- a/nextcloud/assets/my.config.php +++ /dev/null @@ -1,28 +0,0 @@ - '/', - -/** Network **/ -'trusted_domains' => - array ( - 0 => 'medusa.alemor.org', - ), -'overwriteprotocol' => 'https', -'overwritehost' => 'medusa.alemor.org', -'overwritewebroot' => '/nextcloud', -'overwrite.cli.url' => 'https://medusa.alemor.org/nextcloud/', - -/** Memory Caching **/ -'memcache.local' => '\\OC\\Memcache\\Redis', -'memcache.distributed' => '\\OC\\Memcache\\Redis', -'memcache.locking' => '\\OC\\Memcache\\Redis', -'filelocking.enabled' => 'true', -'redis' => - array ( - 'host' => '/var/run/redis/redis-server.sock', - 'port' => 0, - 'timeout' => 0.0, - ), -);