To make Confluence aware of your proxy, you need to start it up with a system parameter.

If you are using Tomcat, you can add this to the catalina.bat/sh file:

JAVA_OPTS=-Dhttp.proxyHost=yourProxyHostAddressHere