Retro.Phoenix.Plug.ProxySensation (Retro v2.2.0) View Source
Set endpoint base URL according to the proxy related headers.
Derive scheme from following headers:
Derive host from following headers:
Derive port from following headers:
Derive remote_ip from following headers:
The :remote_ip is available as logger metadata. To see the IP address in your log output, configure your logger backends to include the :remote_ip metadata:
config :logger, :console, format: "$time $metadata[$level] $message ", metadata: [:request_id, :remote_ip]