diff --git a/docs/features/configuration.rst b/docs/features/configuration.rst index 220ae2bc..3f92f1ba 100644 --- a/docs/features/configuration.rst +++ b/docs/features/configuration.rst @@ -146,6 +146,16 @@ I guess it means if you want to use Ocelot to its fullest you take on Consul as This feature has a 3 second ttl cache before making a new request to your local consul agent. +Reload JSON config on change +^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Ocelot supports reloading the json configuration file on change. e.g. the following will recreate Ocelots internal configuration when the ocelot.json file is updated +manully. + +.. code-block:: json + + config.AddJsonFile("ocelot.json", optional: false, reloadOnChange: true); + Configuration Key -----------------