Discobot, avatars, uploads include hard-code hostname in cooked

No, that shouldn’t be the case.
…
You can use script/discourse remap to replace, that is a lot faster.