Install discourse with internet access only via proxy

That does sound grueling.

It looks like someone managed to do it; perhaps their notes (with a problem you’ll have down the road) will help.