Browse Source

made nextcloud host-agnostic

feature/startup-from-labels
Mar Alegre 4 years ago
parent
commit
b3907f2694
  1. 4
      nextcloud/Containerfile
  2. 13
      nextcloud/assets/config/cache.config.php
  3. 4
      nextcloud/assets/config/misc.config.php
  4. 28
      nextcloud/assets/my.config.php

4
nextcloud/Containerfile

@ -104,7 +104,9 @@ RUN mkdir -p /srv/nextcloud/data && \
chown -R www-data:www-data /srv/nextcloud chown -R www-data:www-data /srv/nextcloud
# copy nextcloud config # 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 ### Crontab

13
nextcloud/assets/config/cache.config.php

@ -0,0 +1,13 @@
<?php
$CONFIG = array(
'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,
),
);

4
nextcloud/assets/config/misc.config.php

@ -0,0 +1,4 @@
<?php
$CONFIG = array(
'htaccess.RewriteBase' => '/',
);

28
nextcloud/assets/my.config.php

@ -1,28 +0,0 @@
<?php
$CONFIG = array(
/** Basic **/
'htaccess.RewriteBase' => '/',
/** 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,
),
);
Loading…
Cancel
Save