gitlab-health.conf 980 B

1234567891011121314151617181920212223242526272829303132
  1. # This file is managed by gitlab-ctl. Manual changes will be
  2. # erased! To change the contents below, edit /etc/gitlab/gitlab.rb
  3. # and run `sudo gitlab-ctl reconfigure`.
  4. location /error.txt {
  5. # return code here is ignored by the error_page directive
  6. return 500 'nginx returned $status when communicating with gitlab-workhorse\n';
  7. }
  8. location /error.json {
  9. # return code here is ignored by the error_page directive
  10. return 500 '{"error":"nginx returned $status when communicating with gitlab-workhorse","status":$status}\n';
  11. }
  12. location = /-/health {
  13. proxy_cache off;
  14. proxy_http_version 1.0;
  15. proxy_pass http://gitlab-workhorse;
  16. error_page 404 500 502 /error.txt;
  17. }
  18. location = /-/readiness {
  19. proxy_cache off;
  20. proxy_http_version 1.0;
  21. proxy_pass http://gitlab-workhorse;
  22. error_page 404 500 502 /error.json;
  23. }
  24. location = /-/liveness {
  25. proxy_cache off;
  26. proxy_http_version 1.0;
  27. proxy_pass http://gitlab-workhorse;
  28. error_page 404 500 502 /error.json;
  29. }