launchcodedev / app-config

Easy Configuration Loader with Strict Validation
https://app-config.dev
Mozilla Public License 2.0
69 stars 11 forks source link

Request for Enhanced Flexibility in Configuration Naming and Location #226

Open dec0dOS opened 1 year ago

dec0dOS commented 1 year ago

Hello! I want to express my gratitude for your amazing project – it's exactly what I've been searching for all this time!

However, I've noticed that the app-config doesn't appear to be as flexible as I initially thought.

I need to utilize the following structure for the configuration files:

config/
    some-dir/
        conf-name/
            conf-name.yml
            conf-name.schema.yml

At present, it seems that the path and the configuration name are hardcoded (.app-config). It appears that the most suitable solution would be to provide a method for users to customize the location and name of the configuration through environment variables, such as CONFIG_DIR and CONFIG_NAME. Your consideration of this enhancement would be greatly appreciated.