[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: supporting http proxy via a config file

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-03-12 19:47:45 CET

On Mon, Mar 11, 2002 at 09:00:11PM -0600, Karl Fogel wrote:
>...
> A prerequisite is a client run-time configuration file (although we
> can allow proxy setting via an environment var, that shouldn't be the
> only way to do it). So I'm planning this:
>
> ~/.subversion/config
>...
> If comments, please post 'em now. :-)

I think that you're going to want lines that look something like:

[proxies]
group1 = *.collab.net
group1_host = myproxy.sp.collab.net
group1_port = 8000
group1_username = gjsproxy
group1_password = yourmom

The above config defines a "virtual host", if you will, called group1 which
applies to *.collab.net (meaning that the group is selected if the URI's
host matches the specified glob pattern).

For the given group, we then define the four parameters necessary.

I might also suggest that you put this stuff into ./configure/proxies
instead, and set up the config file like:

[groups]
group1 = *.collab.net

[group1]
host = ...
port = ...
username = ...
password = ...

[default]
# if params for 'default' are specified, then all hosts which don't match a
# particular group will use this.
...

To me, this is much more straight-forward.

Note that glob patterns will be needed, so the user can match multiple hosts
which require a specified proxy. That is, it is quite possible that a user
needs to use more than one proxy in their environment.

For the [default] case above, it is also important to have a way to disable
the default proxy. For example:

no_proxy = *.collab.net, *.webdav.org

(yes, the pattern ought to be comma-separated globs...)

That's all I've got...

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 12 19:45:39 2002

This is an archived mail posted to the Subversion Dev mailing list.