Proxy Settings
From AragoWiki
(Difference between revisions)
(New page: HTTP and FTP transports can be configured with the environment variables: $ export http_proxy=proxyhost:port $ export ftp_proxy=proxyhost:port Some internal hosts don't need to go thro...) |
|||
| Line 1: | Line 1: | ||
| + | === HTTP/FTP === | ||
HTTP and FTP transports can be configured with the environment variables: | HTTP and FTP transports can be configured with the environment variables: | ||
| Line 8: | Line 9: | ||
$ export no_proxy=host1,host2 | $ export no_proxy=host1,host2 | ||
| - | + | === Subversion === | |
| + | Subversion/svn proxy is configured in <code>~/.subversion/servers</code> file: | ||
[global] | [global] | ||
http-proxy-host = proxyhost | http-proxy-host = proxyhost | ||
http-proxy-port = port | http-proxy-port = port | ||
| + | |||
| + | === git === | ||
| + | git needs a helper application/script to work through the proxy. One needs to create such script, following this example: | ||
| + | |||
| + | #!/bin/sh | ||
| + | PROXYHOST=proxyhost | ||
| + | PROXYPORT=port | ||
| + | (echo "CONNECT $1:$2 HTTP/1.0"; echo; cat ) | /usr/bin/nc $PROXYHOST $PROXYPORT | (read a; read a; cat ) | ||
| + | |||
| + | In order for git to use the above script, <code>GIT_PROXY_COMMAND<code> environment variable needs to point to it: | ||
| + | |||
| + | $ export GIT_PROXY_COMMAND=/path/to/git-proxy.sh | ||
Revision as of 00:44, 13 January 2009
HTTP/FTP
HTTP and FTP transports can be configured with the environment variables:
$ export http_proxy=proxyhost:port $ export ftp_proxy=proxyhost:port
Some internal hosts don't need to go through the proxy:
$ export no_proxy=host1,host2
Subversion
Subversion/svn proxy is configured in ~/.subversion/servers file:
[global] http-proxy-host = proxyhost http-proxy-port = port
git
git needs a helper application/script to work through the proxy. One needs to create such script, following this example:
#!/bin/sh PROXYHOST=proxyhost PROXYPORT=port (echo "CONNECT $1:$2 HTTP/1.0"; echo; cat ) | /usr/bin/nc $PROXYHOST $PROXYPORT | (read a; read a; cat )
In order for git to use the above script, GIT_PROXY_COMMAND<code> environment variable needs to point to it:
$ export GIT_PROXY_COMMAND=/path/to/git-proxy.sh

