Commit 7fc44a27a485e3348c0c021537253af0e35a8d49

Authored by Sytse Sijbrandij
2 parents f87855ae abae1289

Merge branch 'document_chunked_transfer' into 'master'

Document Chunked Transfer
Showing 1 changed file with 14 additions and 0 deletions   Show diff stats
lib/support/nginx/gitlab
1 1 # GITLAB
2 2 # Maintainer: @randx
3 3  
  4 +# CHUNKED TRANSFER
  5 +# It is a known issue that Git-over-HTTP requires chunked transfer encoding [0] which is not
  6 +# supported by Nginx < 1.3.9 [1]. As a result, pushing a large object with Git (i.e. a single large file)
  7 +# can lead to a 411 error. In theory you can get around this by tweaking this configuration file and either
  8 +# - installing an old version of Nginx with the chunkin module [2] compiled in, or
  9 +# - using a newer version of Nginx.
  10 +#
  11 +# At the time of writing we do not know if either of these theoretical solutions works. As a workaround
  12 +# users can use Git over SSH to push large files.
  13 +#
  14 +# [0] https://git.kernel.org/cgit/git/git.git/tree/Documentation/technical/http-protocol.txt#n99
  15 +# [1] https://github.com/agentzh/chunkin-nginx-module#status
  16 +# [2] https://github.com/agentzh/chunkin-nginx-module
  17 +
4 18 upstream gitlab {
5 19 server unix:/home/git/gitlab/tmp/sockets/gitlab.socket;
6 20 }
... ...