Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Generate configuration templates #397

Closed
1 task done
taos15 opened this issue Dec 24, 2023 · 4 comments
Closed
1 task done

[FEAT] Generate configuration templates #397

taos15 opened this issue Dec 24, 2023 · 4 comments

Comments

@taos15
Copy link

taos15 commented Dec 24, 2023

Is this a new feature request?

  • I have searched the existing issues

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:

  • Given I am a system admin
    • And want to add a services like redis. I need to go the the documentation to build the configuration

Scenario 2:

  • Given I am a system admin
    • And want to tune the server. I want to be able to see the default config use during the intalation script

Proposed code change

I propose to:

  • Create someConfig.sample.config.php with the most used configutaions (databases, redis cache, imaginary, etc) as well as the template of the initail config , so we see what values were used during the instalation. Multi-files configuration are prefered
  • A add logic to the templates be able to rename the *conf.example.php based on enviropment variables.
Copy link

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

@taos15
Copy link
Author

taos15 commented Dec 24, 2023

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
Copy link
Collaborator

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.

@LinuxServer-CI LinuxServer-CI closed this as not planned Won't fix, can't repro, duplicate, stale Mar 24, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Mar 24, 2024
Copy link

This issue is locked due to inactivity

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests

2 participants