Discourse in a closed intranet

What I did to install Discourse in a closed intranet was setting a proxy (environment variables like http_proxy, https_proxy, etc) pointing to my local machine, doing the install and removing the proxy afterwards.