/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:
evazion
2021-05-06 00:30:37 -05:00
parent ba5a2dcd79
commit e36fb6fee3
3 changed files with 26 additions and 1 deletions

View File

@@ -34,5 +34,14 @@
<%= render "list", hash: @status.serializable_hash[:redis][:info] %>
</details>
<h2>Request</h2>
<details>
<summary>
IP: <%= @status.request.remote_ip %>
</summary>
<%= render "list", hash: @status.serializable_hash[:headers] %>
</details>
</div>
</div>