Image upload, relative path instead of full path

We use a SSH tunel to connect to our discourse from outside.

ext (external.com) → int (example.com) but of course, all image are broken. With the relative path, there will be no problem.
In fact, why this is not relative path by default ?