aboutsummaryrefslogtreecommitdiff
path: root/docs/luarocks_through_a_proxy.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docs/luarocks_through_a_proxy.md36
1 files changed, 36 insertions, 0 deletions
diff --git a/docs/luarocks_through_a_proxy.md b/docs/luarocks_through_a_proxy.md
new file mode 100644
index 00000000..589142fc
--- /dev/null
+++ b/docs/luarocks_through_a_proxy.md
@@ -0,0 +1,36 @@
1# LuaRocks through a proxy
2
3LuaRocks performs network access through either helper applications (typically
4`curl` on macOS, or `wget` on other platforms), or using built-in modules
5LuaSocket and LuaSec. All of them use the same method to configure proxies:
6the `http_proxy`, `https_proxy` and `ftp_proxy` environment variables.
7
8## Environment variable example
9
10On Unix systems, you can set the `http_proxy` environment variable like
11this:
12
13 export http_proxy=http://server:1234
14
15On Windows systems, the command syntax is:
16
17 set http_proxy=http://server:1234
18
19## Git
20
21If you are behind a firewall that blocks the `git://` protocol, you may
22configure your Git to use HTTPS instead. The solution is to tell Git to always
23use HTTPS instead of `git://` by running the following command:
24
25 git config --global url."https://".insteadOf git://
26
27This adds the following to your `~/.gitconfig`:
28
29 [url "https://"]
30 insteadOf = git://
31
32## External references
33
34* [curl manpage](http://www.hmug.org/man/1/curl.php)
35* ["How to use wget through proxy"](http://blog.taragana.com/index.php/archive/how-to-use-wget-through-proxy/)
36* ["Tell git to use https instead of git protocol"](http://jgoodall.me/posts/2013/05/29/git-use-https)