Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
3c2914b4
Commit
3c2914b4
authored
Nov 27, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'nginx-workhorse-upload-limit' into 'master'
Nginx workhorse upload limit See merge request !1919
parents
8f4b6d51
f1710073
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
12 deletions
+24
-12
lib/support/nginx/gitlab
lib/support/nginx/gitlab
+12
-6
lib/support/nginx/gitlab-ssl
lib/support/nginx/gitlab-ssl
+12
-6
No files found.
lib/support/nginx/gitlab
View file @
3c2914b4
...
@@ -114,24 +114,28 @@ server {
...
@@ -114,24 +114,28 @@ server {
}
}
location ~ ^/[\w\.-]+/[\w\.-]+/gitlab-lfs/objects {
location ~ ^/[\w\.-]+/[\w\.-]+/gitlab-lfs/objects {
client_max_body_size 0;
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
error_page 418 = @gitlab-workhorse;
error_page 418 = @gitlab-workhorse;
return 418;
return 418;
}
}
location ~ ^/[\w\.-]+/[\w\.-]+/(info/refs|git-upload-pack|git-receive-pack)$ {
location ~ ^/[\w\.-]+/[\w\.-]+/(info/refs|git-upload-pack|git-receive-pack)$ {
client_max_body_size 0;
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
error_page 418 = @gitlab-workhorse;
error_page 418 = @gitlab-workhorse;
return 418;
return 418;
}
}
location ~ ^/[\w\.-]+/[\w\.-]+/repository/archive {
location ~ ^/[\w\.-]+/[\w\.-]+/repository/archive {
client_max_body_size 0;
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
error_page 418 = @gitlab-workhorse;
error_page 418 = @gitlab-workhorse;
return 418;
return 418;
}
}
location ~ ^/api/v3/projects/.*/repository/archive {
location ~ ^/api/v3/projects/.*/repository/archive {
client_max_body_size 0;
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
error_page 418 = @gitlab-workhorse;
error_page 418 = @gitlab-workhorse;
return 418;
return 418;
...
@@ -139,6 +143,7 @@ server {
...
@@ -139,6 +143,7 @@ server {
# Build artifacts should be submitted to this location
# Build artifacts should be submitted to this location
location ~ ^/[\w\.-]+/[\w\.-]+/builds/download {
location ~ ^/[\w\.-]+/[\w\.-]+/builds/download {
client_max_body_size 0;
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
error_page 418 = @gitlab-workhorse;
error_page 418 = @gitlab-workhorse;
return 418;
return 418;
...
@@ -146,6 +151,7 @@ server {
...
@@ -146,6 +151,7 @@ server {
# Build artifacts should be submitted to this location
# Build artifacts should be submitted to this location
location ~ /ci/api/v1/builds/[0-9]+/artifacts {
location ~ /ci/api/v1/builds/[0-9]+/artifacts {
client_max_body_size 0;
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
error_page 418 = @gitlab-workhorse;
error_page 418 = @gitlab-workhorse;
return 418;
return 418;
...
...
lib/support/nginx/gitlab-ssl
View file @
3c2914b4
...
@@ -161,24 +161,28 @@ server {
...
@@ -161,24 +161,28 @@ server {
}
}
location ~ ^/[\w\.-]+/[\w\.-]+/gitlab-lfs/objects {
location ~ ^/[\w\.-]+/[\w\.-]+/gitlab-lfs/objects {
client_max_body_size 0;
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
error_page 418 = @gitlab-workhorse;
error_page 418 = @gitlab-workhorse;
return 418;
return 418;
}
}
location ~ ^/[\w\.-]+/[\w\.-]+/(info/refs|git-upload-pack|git-receive-pack)$ {
location ~ ^/[\w\.-]+/[\w\.-]+/(info/refs|git-upload-pack|git-receive-pack)$ {
client_max_body_size 0;
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
error_page 418 = @gitlab-workhorse;
error_page 418 = @gitlab-workhorse;
return 418;
return 418;
}
}
location ~ ^/[\w\.-]+/[\w\.-]+/repository/archive {
location ~ ^/[\w\.-]+/[\w\.-]+/repository/archive {
client_max_body_size 0;
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
error_page 418 = @gitlab-workhorse;
error_page 418 = @gitlab-workhorse;
return 418;
return 418;
}
}
location ~ ^/api/v3/projects/.*/repository/archive {
location ~ ^/api/v3/projects/.*/repository/archive {
client_max_body_size 0;
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
error_page 418 = @gitlab-workhorse;
error_page 418 = @gitlab-workhorse;
return 418;
return 418;
...
@@ -186,6 +190,7 @@ server {
...
@@ -186,6 +190,7 @@ server {
# Build artifacts should be submitted to this location
# Build artifacts should be submitted to this location
location ~ ^/[\w\.-]+/[\w\.-]+/builds/download {
location ~ ^/[\w\.-]+/[\w\.-]+/builds/download {
client_max_body_size 0;
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
error_page 418 = @gitlab-workhorse;
error_page 418 = @gitlab-workhorse;
return 418;
return 418;
...
@@ -193,6 +198,7 @@ server {
...
@@ -193,6 +198,7 @@ server {
# Build artifacts should be submitted to this location
# Build artifacts should be submitted to this location
location ~ /ci/api/v1/builds/[0-9]+/artifacts {
location ~ /ci/api/v1/builds/[0-9]+/artifacts {
client_max_body_size 0;
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
error_page 418 = @gitlab-workhorse;
error_page 418 = @gitlab-workhorse;
return 418;
return 418;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment