tomtaylor / plug_forwarded_port

Plug for handling the X-Forwarded-Port header

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PlugForwardedPort

Plug for parsing the X-Forwarded-Port header and setting the Plug.Conn port from it.

I use this on Heroku to set the port correctly, so Plug.Conn.request_url/1 generates the URL correctly.

Installation

def deps do
  [
    {:plug_forwarded_port, "~> 0.1.0"},
  ]
end

About

Plug for handling the X-Forwarded-Port header


Languages

Language:Elixir 100.0%