Fix nginx config to use @gitlab-workhorse
This commit is contained in:
parent
445cdb7579
commit
7e4e3fb3b6
2 changed files with 8 additions and 8 deletions
|
@ -134,16 +134,16 @@ 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;
|
client_max_body_size 0;
|
||||||
# 'Error' 418 is a hack to re-use the @gitlab-git-http-server block
|
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
|
||||||
error_page 418 = @gitlab-git-http-server;
|
error_page 418 = @gitlab-workhorse;
|
||||||
return 418;
|
return 418;
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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;
|
client_max_body_size 0;
|
||||||
# 'Error' 418 is a hack to re-use the @gitlab-git-http-server block
|
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
|
||||||
error_page 418 = @gitlab-git-http-server;
|
error_page 418 = @gitlab-workhorse;
|
||||||
return 418;
|
return 418;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -181,16 +181,16 @@ 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;
|
client_max_body_size 0;
|
||||||
# 'Error' 418 is a hack to re-use the @gitlab-git-http-server block
|
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
|
||||||
error_page 418 = @gitlab-git-http-server;
|
error_page 418 = @gitlab-workhorse;
|
||||||
return 418;
|
return 418;
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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;
|
client_max_body_size 0;
|
||||||
# 'Error' 418 is a hack to re-use the @gitlab-git-http-server block
|
# 'Error' 418 is a hack to re-use the @gitlab-workhorse block
|
||||||
error_page 418 = @gitlab-git-http-server;
|
error_page 418 = @gitlab-workhorse;
|
||||||
return 418;
|
return 418;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue