From 235c8d5ccb4116f79bdf5e00cd774265cef0da18 Mon Sep 17 00:00:00 2001 From: ycc Date: Wed, 4 Sep 2024 14:41:27 +0200 Subject: [PATCH] doc fix --- README.md | 6 +++--- entrypoint.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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