Show the HTTP request headers and the client IP on the /status page. This is for debugging request headers added by reverse proxies such as Cloudflare and Nginx, and for making sure the client IP is correctly set by the X-Forwarded-For header.
9 lines
167 B
Ruby
9 lines
167 B
Ruby
class StatusController < ApplicationController
|
|
respond_to :html, :json, :xml
|
|
|
|
def show
|
|
@status = ServerStatus.new(request)
|
|
respond_with(@status)
|
|
end
|
|
end
|