Skip to content

Support for Environment Variables in configuration.php #36898

@vitali-korezki

Description

@vitali-korezki

Steps to reproduce the issue

Whenever I save the configs, the file configuration.php will be overwritten, which makes it impossible to adopt in a way, so that the values can be passed over from the environment variables.

Expected result

Could you please add support for passing environment variables instead of saving values as strings in configuration.php? Maybe there could be a way to add an override config, which will be read after the actual configuration.php which determine (1) which values shouldn't be written in the config file when I save my changes and (2) providing a way to set parameter value programmatically.

Actual result

Whenever I add "construct" function or try to use environment variable directly in the config, it will disappear after saving the changes in the backend.

System information (as much as possible)

Joomla 3 & 4

Additional comments

This would make my Joomla installation much easier to be deployed via GIT on a docker container

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions