I think you might need to do that in a development environment, which does seem like a big reach (but Install Discourse for development using Docker might not be that hard).
The other way to play it is to live on the edge and just do it on the live site. Unless you get dozens of sign ups a day, it’s likely that no one will notice.
Edit:
That’s what to do!