D'ar sul 24 a viz C'hwevrer 2013 e 14 eur 12, « Carsten Haitzler » he deus skrivet : > On Sun, 24 Feb 2013 13:50:07 +0100 Bertrand Jacquin <[email protected]> said: > > > Hi, > > > > Pretty sure nobody will care about, but now all git repositories have > > read only access via HTTP for thoses behind firewall. > > > > The clone URL in cgit have been updated to report the cloning URL. This > > URL is the same shown in your browser URL bar, don't panic, this is > > handled by filtering the requested file that never conflict with cgit. > > Some htaccess magic does help. > > > > So for official git repositoried, it now give the following : > > > > http://git.enlightenment.org/core/efl.git > > http://git.enlightenment.org/core/elementary.git > > http://git.enlightenment.org/core/enlightenment.git > > this is actually rather cool. :) it was one of those benefits "out of the box" > for svn originally. :)
For thoses who are interested in a such configuration :
# Force no Indexes in all cases
# Force ExecCGI
# FollowSymlinks for RewriteEngine
Options -Indexes ExecCGI FollowSymlinks
AddHandler cgi-script .cgi
# No index.html or other things
DirectoryIndex cgit.cgi
# Config is locally hosted, not depending on root filesystem
SetEnv CGIT_CONFIG ./cgitrc
# git-html-backend config
# GIT_HTTP_EXPORT_ALL is not setted, gitolite is creating git-daemon-export-ok
SetEnv GIT_PROJECT_ROOT /srv/gitolite/repositories
RewriteEngine On
# Disable HTTPS
RewriteCond %{ENV:HTTPS} On
RewriteRule ^(.*) http://%{SERVER_NAME}/$1 [R=301,L]
# Stop here if cgit is handling the request
RewriteCond %{REQUEST_URI} ^/cgit.cgi
RewriteRule (.*) - [L]
# Stop here if git-http-backend is handling the request
RewriteCond %{REQUEST_URI} ^/git-http-backend.cgi
RewriteRule (.*) - [L]
# Refuse to serve to users the config file
RewriteCond %{REQUEST_URI} ^/cgitrc
RewriteRule (.*) - [F,L]
# Disable git-http-backend write access
RewriteCond %{REQUEST_URI} ^(.*)\.git/git-receive-pack
RewriteRule (.*) - [F,L]
# Access to git files is a the same URL than cgit, filter them
RewriteCond %{REQUEST_URI} ^(.*)\.git/HEAD$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)\.git/info/refs$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)\.git/objects/info/[^/]+ [OR]
RewriteCond %{REQUEST_URI} ^(.*)\.git/objects/[0-9a-f]{2}/[0-9a-f]{38}$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)\.git/pack/pack-[0-9a-f]{40}\.(pack|idx)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)\.git/git-upload-pack$
RewriteRule (.*) /git-http-backend.cgi/$1 [L,QSA]
# Access cgit from /
RewriteRule ^([^/]+)(/(.*)) /cgit.cgi/$1$2 [L,QSA,NS]
--
Beber
pgp9K3JNDBtdU.pgp
Description: PGP signature
------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
