Commit 7e4e3fb3 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix nginx config to use @gitlab-workhorse

parent 445cdb75
...@@ -134,16 +134,16 @@ server { ...@@ -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 { ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment