-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support external controller and its override settings #299
Conversation
5fd0e0b
to
fc9bb97
Compare
fc9bb97
to
bacc753
Compare
I have rebased the changes onto the current upstream. |
Can you confirm that the overriding of In my actual test, no overriding occurred and the settings in the configuration file were directly loaded. |
Yes, I'm using v2.10.4 release, and my profile contains valid |
Actually if you keep the default value of |
That's indeed the case. Shall I add the annotation |
This should be a solution, I just wonder if adding this annotation will have other unknown side effects. |
Then to avoid taking the fields like |
I think this solution is feasible. We just need to add a function before |
OK, I have opened #330 and it's tested to resolve this. |
This adds initial support for external controller (RESTful APIs). The inbound for external controller is started when loading a profile, and override settings for
external_controller
andsecret
are added.The default value for
external_controller
is set to127.0.0.1:0
, indicating disabled for now, to keep compatibile behaviors and to avoid taking settings from untrusted profiles.Still, due to how the external controller is implemented, I haven't found a way to update the inbound when
external_controller
andsecret
are changed in the profile or settings, so a restart (force stop of the app) is required to apply the changes for now.