| 1234567891011121314151617181920212223242526272829303132 |
- # This file is managed by gitlab-ctl. Manual changes will be
- # erased! To change the contents below, edit /etc/gitlab/gitlab.rb
- # and run `sudo gitlab-ctl reconfigure`.
- location /error.txt {
- # return code here is ignored by the error_page directive
- return 500 'nginx returned $status when communicating with gitlab-workhorse\n';
- }
- location /error.json {
- # return code here is ignored by the error_page directive
- return 500 '{"error":"nginx returned $status when communicating with gitlab-workhorse","status":$status}\n';
- }
- location = /-/health {
- proxy_cache off;
- proxy_http_version 1.0;
- proxy_pass http://gitlab-workhorse;
- error_page 404 500 502 /error.txt;
- }
- location = /-/readiness {
- proxy_cache off;
- proxy_http_version 1.0;
- proxy_pass http://gitlab-workhorse;
- error_page 404 500 502 /error.json;
- }
- location = /-/liveness {
- proxy_cache off;
- proxy_http_version 1.0;
- proxy_pass http://gitlab-workhorse;
- error_page 404 500 502 /error.json;
- }
|