/status: show HTTP request headers and client IP.
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.
This commit is contained in:
@@ -2,7 +2,7 @@ class StatusController < ApplicationController
|
||||
respond_to :html, :json, :xml
|
||||
|
||||
def show
|
||||
@status = ServerStatus.new
|
||||
@status = ServerStatus.new(request)
|
||||
respond_with(@status)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user