Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMarius Mathiesen <marius@gitorious.org>2012-09-28 12:51:34 (GMT)
committer Marius Mathiesen <marius@gitorious.org>2012-09-28 12:51:34 (GMT)
commit62b132cb0ae65bdbcfcdbf7f12f804239f6c0570 (patch)
tree9394eaf6d78256d2df239208b9d86fb8405e69d2 /doc
parent31d4d80a3dfcc40b04be92a7dd7ea8a659a1ed2a (diff)
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/templates/nginx.conf.sample18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/templates/nginx.conf.sample b/doc/templates/nginx.conf.sample
new file mode 100644
index 0000000..ab8a8d9
--- /dev/null
+++ b/doc/templates/nginx.conf.sample
@@ -0,0 +1,18 @@
+server {
+ # Handle tarball downloads
+ # Gitorious will send a X-Accel-Redirect header like
+ # X-Accel-Redirect: /tarballs/project-repo-sha.tar.gz
+ # Which should be streamed from /var/www/gitorious/tarballs-cache/project-repo-sha.tar.gz
+ location /tarballs/ {
+ internal;
+ alias /var/www/gitorious/tarballs-cache/;
+ }
+ # Handle git-over-http requests
+ # Gitorious will send a X-Accel-Redirect header like
+ # X-Accel-Redirect: /git-http/project/repository.git/info/refs
+ # Which should map to /var/www/gitorious/repositories/project/repository.git/info/refs
+ location /git-http/ {
+ internal;
+ alias /var/www/gitorious/repositories/;
+ }
+} \ No newline at end of file