smallrye-config
smallrye-config copied to clipboard
Enhancement Request : Support for directory recursion and wildcards when defining config locations
Hello,
It would be great to be able to support directory recursion and wildcards when defining additional config locations.
What I would like to be possible is to automatically scan all .properties files under a given directory found in the classpath/or under a filesystem path, as additional locations for configuration properties files.
ex:
smallrye.config.locations=tenants/
(with tenants directory being in /resources/ of my project).
Currently we have to expicitely define the path of each .properties file under the directory :
smallrye.config.locations=tenants/fr/authentication.properties,tenants/fr/datasources.properties,tenants/lu/authentication.properties,tenants/lu/datasources.properties
It works but can be problematic when you may later have a lot of additional tenants.
What I would like to be is be able to define directories for each tenant of my application, each directory containing the properties associated to this tenant. Example :
Being able to use wildcards in the path would be also great
ex :
smallrye.config.locations=tenants/*/*.properties