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

Attempting a transparent(ish) write-through proxy for a remote site.

From: Terry Dooher <Terry.Dooher_at_naturalmotion.com>
Date: Wed, 12 May 2010 17:00:18 +0100

Hi all,

I've been trying to set up mirror repository for a remote site. So far, I have everything running: The mirror repository, the proxy URL (separate from the mirror to avoid sync loops) and the post-commit and post-revprop-change synchronisation hooks are all working well. I'm able to check out from the mirror URL on the remote site and have commits routed back through to the master.

The final part I'm having trouble with is setting it up so that the remote users can use the same repository URL as the local ones. We have a number of repos with developers moving form project to project at any given time and potentially moving between sites. It would be very useful to have the documentation for each project supply only a single URL which would work from either site, with the proxy only coming in to action when they're working remotely.

Ideally, this would be completely transparent, but that doesn't look to be possible. I'd be happy if I could supply a client config file to remote users that would ensure they use the write-through proxy for all mirrored repositories. Using the following setup:

Master URL: http://svnmaster/project
Mirror URL: http://svnmirror:8080/project
Proxy URL: http://svnproxy:8000/project

I've set the 'servers' config to:
http-proxy-host = svnproxy
http-proxy-port = 8000

I've also tried specifying them on the command line:
svn co http://svnmaster/project --config-option servers:global:http-proxy-host=svnproxy --config-option servers:global:http-proxy-port=8000

In both attempts, the proxy is ignored and the client connects directly to the master.

None of the guides I've read mention much about configuring clients in this way, and I've a feeling I'm mis-using the general connection proxy settings, which is why it's not working; but I can't see any other way of achieving my aim. Have I missed something or is this not currently possible?

Cheers,

Terry.
Received on 2010-05-12 18:00:51 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.