On Sun, May 6, 2012 at 5:59 AM, Miklos Espak <
esp...@gmail.com> wrote:
> I am wondering if it's possible to provide read-only access for those who
> don't provide a username/password when connect, and read-write access for
> those who authenticate themselves.
I don't know how to do this with the same uri ("/git/reponame.git").
I don't think it is possible -- browsers don't send auth info unless
*asked to*, IIRC.
Anyway...
(1) If you followed the instructions you should also have a
scriptalias for 'gitmob'. Unauthenticated URLs would look like
https://myhost.com/gitmob/testing.git
(2) add a variable called HTTP_ANON_USER to the rc file, giving it
whatever value you want. I suggest "mob".
(3) in your conf file, add somewhere
repo @all
R = mob
(4) tell people the correct URLs to use.