LuaRocks through a proxy
Hisham Muhammad edited this page Apr 18, 2016
·
3 revisions
LuaRocks performs network access through either helper applications (typically curl
on Mac OSX, or wget
on other platforms), or using built-in modules LuaSocket and LuaSec. All of them use the same method to configure proxies: the http_proxy
, https_proxy
and ftp_proxy
environment variables.
On Unix systems, you can set the ''http_proxy'' environment variable like this:
export http_proxy=http://server:1234
On Windows systems, the command syntax is:
set http_proxy=http://server:1234
If you are behind a firewall that blocks the git://
protocol, you may configure your Git to use HTTPS instead. The solution is to tell Git to always use HTTPS instead of git://
by running the following command:
git config --global url."https://".insteadOf git://
This adds the following to your ~/.gitconfig
:
[url "https://"]
insteadOf = git://