Yes, you can do that, just make sure you understand the code, to know where to put it.
it will replace the default configure method. I’ve also added a comment in there to point out where you need to update your url.
Also @yaustar was kind enough to provide you a full working example, so study everything to understand what you have to do.