Introducing support for Nginx X-Accel-Redirect configuration
authorMarius Mathiesen <marius@gitorious.org>
Fri, 28 Sep 2012 12:51:34 +0000 (14:51 +0200)
committerMarius Mathiesen <marius@gitorious.org>
Fri, 28 Sep 2012 12:51:34 +0000 (14:51 +0200)
commit62b132cb0ae65bdbcfcdbf7f12f804239f6c0570
tree9394eaf6d78256d2df239208b9d86fb8405e69d2
parent31d4d80a3dfcc40b04be92a7dd7ea8a659a1ed2a
Introducing support for Nginx X-Accel-Redirect configuration

Set frontend_server: nginx to instruct Gitorious to use these headers
instead of X-Sendfile headers. Gitorious will use synthetic URIs for
this, which should be configured in Nginx; read the
doc/templates/nginx.sample.yml for details.

Furthermore, please note that git-http cloning is not yet supported
with this setup.
app/controllers/trees_controller.rb
config/gitorious.sample.yml
doc/templates/nginx.conf.sample [new file with mode: 0644]
test/functional/trees_controller_test.rb