Search code examples
.net-coreproxyazure-web-app-serviceocelot

Ocelot Proxy AddJsonFile reloadOnChange is not working on azure linux app service


I am working with Ocelot proxy, I have a problem with reloadOnChange on azure linux app service. When changing the json configuration, they are not reflected until restarting the app service.

It working fine locally and when trying it on an azure windows app service.

The code I am using is

.ConfigureAppConfiguration((hostingContext, config) =>
{
    config.AddJsonFile($"ocelot.json", false, true);
})

Solution

  • Actually I found a walkaround to solve this problem as mentioned in the below urls

    kubernetes-reload-your-aspnet-core

    ConfigMapFileProvider