{"id":18104413,"url":"https://github.com/springmt/rack-server_status","last_synced_at":"2025-04-13T19:31:50.847Z","repository":{"id":32200177,"uuid":"35773825","full_name":"SpringMT/rack-server_status","owner":"SpringMT","description":"Show server status like Apache's mod_status","archived":false,"fork":false,"pushed_at":"2022-07-05T03:16:36.000Z","size":21,"stargazers_count":13,"open_issues_count":4,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T00:33:19.928Z","etag":null,"topics":["rack","ruby","serverstatus"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpringMT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-17T16:38:45.000Z","updated_at":"2023-03-31T07:11:40.000Z","dependencies_parsed_at":"2022-07-26T04:31:59.792Z","dependency_job_id":null,"html_url":"https://github.com/SpringMT/rack-server_status","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpringMT%2Frack-server_status","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpringMT%2Frack-server_status/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpringMT%2Frack-server_status/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpringMT%2Frack-server_status/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpringMT","download_url":"https://codeload.github.com/SpringMT/rack-server_status/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248767957,"owners_count":21158563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rack","ruby","serverstatus"],"created_at":"2024-10-31T22:14:48.465Z","updated_at":"2025-04-13T19:31:50.519Z","avatar_url":"https://github.com/SpringMT.png","language":"Ruby","readme":"# Rack::ServerStatus [![Build Status](https://travis-ci.org/SpringMT/rack-server_status.svg?branch=master)](https://travis-ci.org/SpringMT/rack-server_status)\n\nThis is a Ruby version of [kazeburo/Plack-Middleware-ServerStatus-Lite](https://github.com/kazeburo/Plack-Middleware-ServerStatus-Lite).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rack-server_status'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rack-server_status\n\n## Usage\n### Getting started\nTell your app to use the Rack::ServerStatus middleware.\n\n#### For Rails 3+ apps\n\n```\n# In config/application.rb\nconfig.middleware.use Rack::ServerStatus, scoreboard_path: './tmp'\n```\n\n#### Rackup files\n\n```\n# In config.ru\nuse Rack::ServerStatus, scoreboard_path: './tmp'\n```\n\n### Get Status\n\n```\n% curl http://server:port/server-status\nUptime: 1432227723 (12 seconds)\nBusyWorkers: 1\nIdleWorkers: 3\n--\npid status remote_addr host method uri protocol ss\n55091 _  -    0\n55092 _  -    1\n55093 A 127.0.0.1 localhost:3000 GET /server-status HTTP/1.1 0\n55094 _  -    0\n\n# JSON format\n% curl http://server:port/server-status?json\n{\"Uptime\":1432388968,\"BusyWorkers\":1,\"IdleWorkers\":3,\"stats\":[{\"remote_addr\":null,\"host\":\"-\",\"method\":null,\"uri\":null,\"protocol\":null,\"pid\":87240,\"status\":\"_\",\"ss\":2},{\"remote_addr\":\"127.0.0.1\",\"host\":\"localhost:3000\",\"method\":\"GET\",\"uri\":\"/server-status?json\",\"protocol\":\"HTTP/1.1\",\"pid\":87241,\"status\":\"A\",\"ss\":0},{\"remote_addr\":null,\"host\":\"-\",\"method\":null,\"uri\":null,\"protocol\":null,\"pid\":87242,\"status\":\"_\",\"ss\":3},{\"remote_addr\":null,\"host\":\"-\",\"method\":null,\"uri\":null,\"protocol\":null,\"pid\":87243,\"status\":\"_\",\"ss\":3}]}\n```\n\n## Configuration\n\n| name | detail | example | default |\n|------|--------|---------|---------|\n| path | location that displays server status | `path: '/server-status'` | `/server-status` |\n| allow | host based access control of a page of server status. | `allow: ['127.0.0.1']` | `[]` |\n| scoreboard | scoreboard directory | `scoreboard_path: './tmp'` | nil |\n| skip_ps_command |  | `skip_ps_command: true` | false |\n\n\n## Contributing\n\n1. Fork it ( https://github.com/[my-github-username]/rack-server_status/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringmt%2Frack-server_status","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspringmt%2Frack-server_status","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringmt%2Frack-server_status/lists"}