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

Move config to separate file (eg config.php) #119

Open
russell-phillips opened this issue Feb 19, 2024 · 2 comments
Open

Move config to separate file (eg config.php) #119

russell-phillips opened this issue Feb 19, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@russell-phillips
Copy link

Is your feature request related to a problem? Please describe.
I have a couple of perlite sites, configured by editing helper.php

When updating perlite, I have to make a copy of helper.php, then re-add my configuration.

Describe the solution you'd like
I'd like a separate file named something like 'config.php' that can hold any custom configuration. Ideally, it wouldn't be included in releases, so that I could update perlite without overwriting my configuration.

Describe alternatives you've considered
It might be simpler/better to have the default configuration in one file (eg config.php) and any overriding local configuration in another file (eg config_local.php)

Additional context
This is a setup I've seen used to good effect in other server software such as Kanboard and Dokuwiki.

@russell-phillips russell-phillips added the enhancement New feature or request label Feb 19, 2024
@secure-77
Copy link
Owner

Hey @russell-phillips.

For adjusting the variables, you can also use your php-fpm config files, of course if you have more then one instance running you need more configurations (pools) but this way you don't need to adjust the php files.

But I already thought about to separate some "more likely changed by user" code to another file, can you tell me if there is anything else besides the env variables you have adjusted?

@russell-phillips
Copy link
Author

I've added a bit of CSS to helper.php to make the sidebar always visible (to work around #120)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants