assume I have a NextCloud app that sends HTTP requests to a certain URL, what I’m doing now is that, I specified the URL within the PHP code itself, whenever I need to change the URL I change it on the code, change the app version, upload the app to the server, update the server then the requests are sent to the new URL. I didn’t do any UI to my app,
I was thinking if I have some way to change the URL without all these steps, for example some text field in the NextCloud browser UI, then the app reads the URL from there, how to do that? and is there an example app that can be a good guide for this functionality?
It can be whatever you want, the key is a string you will use to get the configured value when using getSystemValue(key)
To do it nicely, try using the name of your app within the key: testapp_server_url or testapp.server_url
something that will not conflict with the core or another app.