The server base URL needs to be configured via the UI.
In general, if it can be configured via the UI, then it should be configured via the UI. There are a few properties that are improperly picked up when configured via properties, but you get weird behavior if you exploit that bug.