diff --git a/README.md b/README.md index 05c6e78..2377796 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,9 @@ func main() { // Load the right config file /* The configuration loader will load the configuration from the following sources: - * - the environment variables with the prefix APPNAME_ - * - the file /etc/oc/appname.json - * - the file ./appname.json + * - the environment variables with the prefix OCAPPNAME_ - ex: OCMYCOMPONENT_MONGOURL + * - the file /etc/oc/appname.json - ex: /etc/oc/mycomponent.json + * - the file ./appname.json - ex: ./mycomponent.json * The configuration loader will merge the configuration from the different sources * The configuration loader will give priority to the environment variables * The configuration loader will give priority to the local file over the default file diff --git a/entrypoint.go b/entrypoint.go index c40b5c7..b620ec5 100644 --- a/entrypoint.go +++ b/entrypoint.go @@ -179,7 +179,7 @@ func SetConfig(mongoUrl string, database string, natsUrl string, lokiUrl string, * Returns: * - *onion.Onion : the configuration loader * The configuration loader will load the configuration from the following sources: -* - the environment variables with the prefix APPNAME_ +* - the environment variables with the prefix OCAPPNAME_ * - the file /etc/oc/appname.json * - the file ./appname.json * The configuration loader will merge the configuration from the different sources