Putting a discourse development server behind proxy seems to mess up some (but not most) URLs

I don’t know if this is applicable to your case.

On my GitHub - VirtualBox - Vagrant localhost development set-up I had some problems with image URLs.

I needed to go to Admin → Settings → Developer and change “port” from the default 3000 to 4000

Knock-wood, no problems since.