linuxserver / docker-nextcloud

GNU General Public License v3.0
678 stars 128 forks source link

[FEAT] Generate configuration templates #397

Closed taos15 closed 3 months ago

taos15 commented 6 months ago

Is this a new feature request?

Wanted change

As a system admin I want configuration templates to be generated when the install the application So that I can use them as refereces to futher modufy the application

Reason for change

Scenario 1:

Scenario 2:

Proposed code change

I propose to:

github-actions[bot] commented 6 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

taos15 commented 6 months ago

Here is an example of how a redis config might look. Open for suggestions.

// redis.config.php

<?php
$rdHost = getenv('RDHOST');
if ($rdHost !== false) {
  $CONFIG = array(
    'memcache.local' => '\\OC\\Memcache\\APCu',
    'memcache.distributed' => '\\OC\\Memcache\\Redis',
    'filelocking.enabled' => true,
    'memcache.locking' => '\\OC\\Memcache\\Redis',
    'redis' => array(
      'host' => $rdHost,
      'port' => getenv('RDPORT'),
      'timeout' => 0.0,
      'password' => getenv('RDPASS'), // Optional, if not defined no password will be used.
    ),
  );
}
LinuxServer-CI commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 2 months ago

This issue is locked due to inactivity