1
0

nginx-status.conf 633 B

1234567891011121314151617181920212223242526272829
  1. server {
  2. listen *:8060;
  3. server_name localhost;
  4. location /nginx_status {
  5. stub_status;
  6. server_tokens off;
  7. access_log off;
  8. allow 127.0.0.1;
  9. deny all;
  10. }
  11. location /metrics {
  12. vhost_traffic_status_display;
  13. vhost_traffic_status_display_format prometheus;
  14. server_tokens off;
  15. access_log off;
  16. allow 127.0.0.1;
  17. deny all;
  18. }
  19. location /rails-metrics {
  20. proxy_cache off;
  21. proxy_http_version 1.0;
  22. proxy_pass http://gitlab-workhorse/-/metrics;
  23. server_tokens off;
  24. access_log off;
  25. allow 127.0.0.1;
  26. deny all;
  27. }
  28. }