require authentication to access a repository
Carlos Adean
carlosadean at gmail.com
Tue May 8 20:23:43 CEST 2012
Dear Daniel,
I made the necessary changes to my environment and it worked perfectly.
thanks
Att.
Carlos Adean
skype: carlosadean
2012/4/30 Carlos Adean <carlosadean at gmail.com>
> great idea, I'll test in my environment.
>
> thank you
>
> Att.
> Carlos Adean
> skype: carlosadean
>
>
>
>
> 2012/4/28 Daniel Reichelt <hacking at nachtgeist.net>
>
>> Hi,
>>
>> sorry, I totally sent out an old, crappy template for the repo-specific
>> access-configuration. Here's the correct one, I actually use:
>>
>>
>>
>> /home/repositories/git/$repo.conf
>> -------------8<---------------
>> <Location "/repositories/cgit/repo1.git">
>> AuthType Basic
>> AuthName "GIT repositories"
>> AuthUserFile /home/repositories/git-htpasswd
>> AuthGroupFile /home/repositories/git-htgroup
>> Require group admin
>> Require group repo1-rw
>> Require group repo1-ro
>> </Location>
>> <LocationMatch "^/repositories/cgit/linux.git/.*/git-receive-pack$">
>> AuthType Basic
>> AuthName "GIT repositories"
>> AuthUserFile /home/repositories/git-htpasswd
>> AuthGroupFile /home/repositories/git-htgroup
>> Require group admin
>> Require group repo1-rw
>> </LocationMatch>
>> -------------8<---------------
>>
>> Cheers
>> Daniel
>>
>
>
More information about the CGit
mailing list