An open API service indexing awesome lists of open source software.

https://github.com/tomtaylor/plug_forwarded_port

Plug for handling the X-Forwarded-Port header
https://github.com/tomtaylor/plug_forwarded_port

elixir http phoenix plug

Last synced: 9 months ago
JSON representation

Plug for handling the X-Forwarded-Port header

Awesome Lists containing this project

README

          

# 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

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