LuaRocks performs all network access through helper applications: curl (on Mac OSX) or wget (on other platforms). Both of them use the same method to configure proxies: the http_proxy and ftp_proxy environment variables.
Example
On Unix systems, you can set them like this:
export http_proxy=http://server:1234