How to change instance url?

Hello,

I have moved my instance location from one server to another, and also have changed the domain name in the process, following this guide:

except the config folder; which contains the configuration with the old domain

however.

in all the operations that I can see, i see the old url

and its making everything broken. videos wont even process transcoding? but not every time, its very confusing

this solution worked the first time, but for the video after that, again, transcoding wont start…

after restarting the docker stack, i saw a warning that lead me here:
npm run update-host

question / dilemma:

having of course both domains, what would be better?

  1. use this npm script to change domain
  2. have the instance on the old domain and do a url rewrite (or something equivalent) on the reverse proxy to the new domain?