proxy configuration being loaded from trigger in app i.e with Controller #1644
-
I have question, could YARP load proxy configuration without restart the application? i have read the documentation about the proxy configuration but either use LoadFromMemory or LoadFromConfig this way requires yout to restart the application, even though in my case i need to load new proxy config while app is still run i.e use trigger from controller |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
If you are using configuration files, you don't need to restart YARP after making changes, they are applied automatically. If you are using config provider, you need to set up reload https://microsoft.github.io/reverse-proxy/articles/config-providers.html#reload |
Beta Was this translation helpful? Give feedback.
-
Yes, you can have a custom configuration provider that's controlled by an API controller. You would have to implement a custom See https://microsoft.github.io/reverse-proxy/articles/config-providers.html - it includes an example |
Beta Was this translation helpful? Give feedback.
Yes, you can have a custom configuration provider that's controlled by an API controller.
You would have to implement a custom
IProxyConfigProvider
and signal theIChangeToken
when you want the config to reload.See https://microsoft.github.io/reverse-proxy/articles/config-providers.html - it includes an example
InMemoryConfigProvider
.